From 2187df7e55c76c8560d0d2819b65d1718d65bb78 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 11 Aug 2010 16:26:34 +0300 Subject: modified: main.cpp modified: utilities.cpp --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') 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; -- cgit v1.2.3