OSDN Git Service

Fixed a couple of obvious code errors
authorColin Law <colin@clanlaw.org.uk>
Thu, 22 Jan 2009 10:52:00 +0000 (10:52 +0000)
committerFrank Li <lznuaa@gmail.com>
Fri, 23 Jan 2009 02:47:55 +0000 (10:47 +0800)
src/TortoiseProc/GitLogListBase.cpp
src/TortoiseProc/ProgressDlg.cpp

index b60db80..3a2f1fa 100644 (file)
@@ -1519,7 +1519,7 @@ UINT CGitLogListBase::LogThread()
                        \r
                        percent=updated*98/m_logEntries.size() + GITLOG_START+1;\r
                        if(percent == GITLOG_END)\r
-                               percent == GITLOG_END -1;\r
+                               percent = GITLOG_END -1;\r
                        \r
                        if(m_ProcCallBack)\r
                                m_ProcCallBack(m_ProcData,percent);\r
index d7f3efe..b7e8514 100644 (file)
@@ -176,7 +176,7 @@ void CProgressDlg::RemoveLastLine(CString &str)
 {\r
        int start;\r
        start=str.ReverseFind(_T('\n'));\r
-       if(start>0);\r
+       if(start>0)\r
                str=str.Left(start);\r
        return;\r
 }\r