scrrun: Move the counter check into the code block where counter is actually incremented.
This commit is contained in:
parent
c8f780be6a
commit
173233cfe3
|
@ -540,10 +540,9 @@ static HRESULT WINAPI foldercoll_enumvariant_Next(IEnumVARIANT *iface, ULONG cel
|
||||||
V_VT(&var[count]) = VT_DISPATCH;
|
V_VT(&var[count]) = VT_DISPATCH;
|
||||||
V_DISPATCH(&var[count]) = (IDispatch*)folder;
|
V_DISPATCH(&var[count]) = (IDispatch*)folder;
|
||||||
count++;
|
count++;
|
||||||
|
|
||||||
|
if (count >= celt) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count >= celt) break;
|
|
||||||
|
|
||||||
} while (FindNextFileW(handle, &data));
|
} while (FindNextFileW(handle, &data));
|
||||||
|
|
||||||
if (fetched)
|
if (fetched)
|
||||||
|
|
Loading…
Reference in New Issue