diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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;
|