summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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;