OSDN Git Service

BUG: [ 1209386 ] Comparing by quick differences jams WinMerge
authorPerry Rapp <elsapo@users.sourceforge.net>
Tue, 31 May 2005 17:38:24 +0000 (17:38 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Tue, 31 May 2005 17:38:24 +0000 (17:38 +0000)
  Src: ByteComparator.cpp

Src/ByteComparator.cpp
Src/readme.txt

index 1e87dfe..e793cf2 100644 (file)
@@ -166,8 +166,12 @@ ByteComparator::CompareBuffers(LPCSTR &ptr0, LPCSTR &ptr1, LPCSTR end0, LPCSTR e
                                if (m_eol0 || m_eol1)
                                {
                                        if (!m_eol0 || !m_eol1)
+                                       {
+                                               // one side had an end-of-line, but the other didn't
                                                return RESULT_DIFF;
-                                       continue;
+                                       }
+                                       // otherwise, both sides had end-of-line
+                                       // pointers have already been advanced, so just continue happily
                                }
                        }
                }
index 358d1cb..04b1a65 100644 (file)
@@ -2,6 +2,8 @@
  PATCH: [ 1206727 ] decouple codepage module from options files
   Src: codepage.cpp codepage.h MainFrm.cpp MainFrm.h
   Src/Common: LanguageSelect.cpp
+ BUG: [ 1209386 ] Comparing by quick differences jams WinMerge
+  Src: ByteComparator.cpp
 
 2005-05-27 Kimmo
  PATCH: [ 1209294 ] Remove running stampver-tool post-build