mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
scrrun: IEnumVARIANT::Next should always return number of fetched folder elements.
This commit is contained in:
parent
8f69ecdff7
commit
f5279ad37d
@ -545,13 +545,10 @@ static HRESULT WINAPI foldercoll_enumvariant_Next(IEnumVARIANT *iface, ULONG cel
|
||||
}
|
||||
} while (FindNextFileW(handle, &data));
|
||||
|
||||
if (count < celt)
|
||||
return S_FALSE;
|
||||
|
||||
if (fetched)
|
||||
*fetched = count;
|
||||
|
||||
return S_OK;
|
||||
return (count < celt) ? S_FALSE : S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI foldercoll_enumvariant_Skip(IEnumVARIANT *iface, ULONG celt)
|
||||
|
@ -942,7 +942,6 @@ todo_wine
|
||||
fetched = -1;
|
||||
hr = IEnumVARIANT_Next(enumvar, 2, var2, &fetched);
|
||||
ok(hr == S_FALSE, "got 0x%08x\n", hr);
|
||||
todo_wine
|
||||
ok(fetched == 1, "got %d\n", fetched);
|
||||
ok(V_VT(&var2[0]) == VT_DISPATCH, "got type %d\n", V_VT(&var2[0]));
|
||||
VariantClear(&var2[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user