Commit 375dcf79 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Don't fail if there are less objects than asked for in IEnumWbemClassObject::Next.

parent 9d8e5651
......@@ -123,7 +123,7 @@ static HRESULT WINAPI enum_class_object_Next(
if (lTimeout != WBEM_INFINITE) FIXME("timeout not supported\n");
*puReturned = 0;
if (ec->index + uCount > view->count) return WBEM_S_FALSE;
if (ec->index >= view->count) return WBEM_S_FALSE;
hr = create_class_object( view->table->name, iface, ec->index, NULL, apObjects );
if (hr != S_OK) return hr;
......
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