Hans Leidekker : wbemprox: Don' t fail if there are less objects than asked for in IEnumWbemClassObject:: Next.
Alexandre Julliard
julliard at winehq.org
Tue Jan 29 12:35:42 CST 2013
Module: wine
Branch: master
Commit: 375dcf799d27ec9d925dab1ad7ba41dadcedaf9f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=375dcf799d27ec9d925dab1ad7ba41dadcedaf9f
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Jan 29 15:31:42 2013 +0100
wbemprox: Don't fail if there are less objects than asked for in IEnumWbemClassObject::Next.
---
dlls/wbemprox/class.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
More information about the wine-cvs
mailing list