OSDN Git Service

PATCH: [ 1149081 ] Invalid string compare in CChildFrm.cpp
authorKimmo Varis <kimmov@gmail.com>
Wed, 23 Feb 2005 17:41:34 +0000 (17:41 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 23 Feb 2005 17:41:34 +0000 (17:41 +0000)
Src/ChildFrm.cpp
Src/readme.txt

index f5c6c92..bb1dd8a 100644 (file)
@@ -640,8 +640,8 @@ static CString EolString(const CString & sEol)
 void CChildFrame::MergeStatus::SetLineInfo(LPCTSTR szLine, int nColumn,
                int nColumns, int nChar, int nChars, LPCTSTR szEol)
 {
-       if (m_sLine != szLine || m_nColumn != nColumn || m_nChars != nChars ||
-               m_sEol != szEol)
+       if (m_sLine.Compare(szLine) != 0 || m_nColumn != nColumn ||
+               m_nChars != nChars || m_sEol.Compare(szEol) != 0)
        {
                m_sLine = szLine;
                m_nColumn = nColumn;
index a99b3c4..a212449 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-23 Kimmo
+ PATCH: [ 1149081 ] Invalid string compare in CChildFrm.cpp
+  Src: ChildFrm.cpp
+
 2005-02-22 Kimmo
  PATCH: [ 1145522 ] fix crash on search
   Submitted by Takashi Sawanaka