scrrun: IEnumVARIANT::Skip shouldn't skip anything if asked number of folder elements is 0.

This commit is contained in:
Dmitry Timoshkov 2014-01-28 11:35:56 +09:00 committed by Alexandre Julliard
parent eb2abf262c
commit 758ebb2121
2 changed files with 2 additions and 1 deletions

View File

@ -557,6 +557,8 @@ static HRESULT WINAPI foldercoll_enumvariant_Skip(IEnumVARIANT *iface, ULONG cel
TRACE("(%p)->(%d)\n", This, celt);
if (!celt) return S_OK;
if (!handle)
{
handle = start_enumeration(This->data.u.foldercoll.coll->path, &data);

View File

@ -931,7 +931,6 @@ todo_wine
hr = IEnumVARIANT_Skip(enumvar, 2);
ok(hr == S_OK, "got 0x%08x\n", hr);
hr = IEnumVARIANT_Skip(enumvar, 0);
todo_wine
ok(hr == S_OK, "got 0x%08x\n", hr);
VariantInit(&var2[0]);