diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-11 16:26:34 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-11 16:26:34 +0300 |
commit | 2187df7e55c76c8560d0d2819b65d1718d65bb78 (patch) | |
tree | 0df21bd1cae5de6fcac63691a558012d680b6bc8 /main.cpp | |
parent | acc3bba849e191562eb0b2e1b3ef518159362cbe (diff) |
modified: main.cpp
modified: utilities.cpp
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;
|