diff --git a/dlls/wbemprox/class.c b/dlls/wbemprox/class.c index d516efb6a7e..a02b325a9ed 100644 --- a/dlls/wbemprox/class.c +++ b/dlls/wbemprox/class.c @@ -130,7 +130,7 @@ static HRESULT WINAPI enum_class_object_Next( ec->index++; *puReturned = 1; - if (ec->index == view->count) return WBEM_S_FALSE; + if (ec->index == view->count && uCount > 1) return WBEM_S_FALSE; if (uCount > 1) return WBEM_S_TIMEDOUT; return WBEM_S_NO_ERROR; }