wbemprox: return success if only one result requested from enum
Daniel Jeliński
djelinski1 at gmail.com
Wed May 15 15:23:29 CDT 2013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130515/db4e6c86/attachment.html>
-------------- next part --------------
From 647843824d25a480fbfb60a8008b9feb395364d1 Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Wed, 15 May 2013 22:19:12 +0200
Subject: wbemprox: return success if only one result requested from enum
Fixes memory detection in SQL Server 2005 installer
---
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;
}
--
1.7.5.4
More information about the wine-patches
mailing list