scrrun: Move the counter check into the code block where counter is actually incremented.

This commit is contained in:
Dmitry Timoshkov 2014-02-10 15:48:27 +09:00 committed by Alexandre Julliard
parent c8f780be6a
commit 173233cfe3
1 changed files with 2 additions and 3 deletions
dlls/scrrun

View File

@ -540,10 +540,9 @@ static HRESULT WINAPI foldercoll_enumvariant_Next(IEnumVARIANT *iface, ULONG cel
V_VT(&var[count]) = VT_DISPATCH;
V_DISPATCH(&var[count]) = (IDispatch*)folder;
count++;
}
if (count >= celt) break;
}
} while (FindNextFileW(handle, &data));
if (fetched)