Commit 2c5da008 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Fix corner cases in IEnumWbemClassObject::Skip.

parent 0f11ac36
......@@ -167,7 +167,9 @@ static HRESULT WINAPI enum_class_object_Skip(
if (lTimeout != WBEM_INFINITE) FIXME("timeout not supported\n");
if (ec->index + nCount >= view->count)
if (!view->count) return WBEM_S_FALSE;
if (nCount > view->count - ec->index)
{
ec->index = view->count - 1;
return WBEM_S_FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment