Daniel Jelinski : wbemprox: Return success if only one result requested from enum.

Alexandre Julliard julliard at winehq.org
Thu May 16 13:55:07 CDT 2013


Module: wine
Branch: master
Commit: 8117ca9c61bc144b1da50c32fcb11849a2aecca6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8117ca9c61bc144b1da50c32fcb11849a2aecca6

Author: Daniel Jelinski <djelinski1 at gmail.com>
Date:   Wed May 15 22:19:12 2013 +0200

wbemprox: Return success if only one result requested from enum.

---

 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 d516efb..a02b325 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;
 }




More information about the wine-cvs mailing list