[1/2] wbemprox: Don't fail if there are less objects than asked for in IEnumWbemClassObject::Next.
Hans Leidekker
hans at codeweavers.com
Tue Jan 29 08:31:42 CST 2013
---
dlls/wbemprox/class.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wbemprox/class.c b/dlls/wbemprox/class.c
index 5205515..a398c95 100644
--- a/dlls/wbemprox/class.c
+++ b/dlls/wbemprox/class.c
@@ -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;
--
1.7.10.4
More information about the wine-patches
mailing list