mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 03:08:42 +00:00
scrrun: IEnumVARIANT::Next should handle FindNextFileW failure.
This commit is contained in:
parent
6da1993129
commit
8f69ecdff7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue