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

This commit is contained in:
Hans Leidekker 2013-01-29 15:31:42 +01:00 committed by Alexandre Julliard
parent 9d8e5651eb
commit 375dcf799d
1 changed files with 1 additions and 1 deletions

View File

@ -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;