scrrun: IEnumVARIANT::Next should handle FindNextFileW failure.

This commit is contained in:
Dmitry Timoshkov 2014-01-28 11:36:04 +09:00 committed by Alexandre Julliard
parent 6da1993129
commit 8f69ecdff7

View File

@ -519,7 +519,10 @@ static HRESULT WINAPI foldercoll_enumvariant_Next(IEnumVARIANT *iface, ULONG cel
This->data.u.foldercoll.find = handle;
}
else
FindNextFileW(handle, &data);
{
if (!FindNextFileW(handle, &data))
return S_FALSE;
}
do
{