scrrun: Move the counter check into the code block where counter is actually incremented.
This commit is contained in:
parent
c8f780be6a
commit
173233cfe3
dlls/scrrun
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue