summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-11 16:26:34 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-11 16:26:34 +0300
commit2187df7e55c76c8560d0d2819b65d1718d65bb78 (patch)
tree0df21bd1cae5de6fcac63691a558012d680b6bc8 /main.cpp
parentacc3bba849e191562eb0b2e1b3ef518159362cbe (diff)
modified: main.cpp
modified: utilities.cpp
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index eeefe97..bd60e6f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -82,7 +82,6 @@ static BOOL CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
{
string out;
DWORD code;
-// iRow = ListView_InsertItem(hwndList, &item);
string::size_type p = 0, p2 = 0, stop = 0;
{
TCHAR cmd[512];
@@ -91,8 +90,9 @@ static BOOL CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
}
while(p != string::npos)
{
- if((p = out.find("sec ", p) + 5) == string::npos)
+ if((p = out.find("sec ", p)) == string::npos)
break;
+ p += 5;
if(p < stop)
break;
stop = p;