Hans Leidekker : wbemprox: Return selected properties only from IWbemClassObject::GetNames.
Alexandre Julliard
julliard at winehq.org
Wed Apr 30 13:32:52 CDT 2014
Module: wine
Branch: master
Commit: c9abb27d89b7a531c0a873264cc0ac3eb04ff624
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9abb27d89b7a531c0a873264cc0ac3eb04ff624
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Apr 30 10:18:39 2014 +0200
wbemprox: Return selected properties only from IWbemClassObject::GetNames.
---
dlls/wbemprox/query.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c
index fdfcc16..e4c4fcd 100644
--- a/dlls/wbemprox/query.c
+++ b/dlls/wbemprox/query.c
@@ -964,7 +964,7 @@ HRESULT get_properties( const struct view *view, LONG flags, SAFEARRAY **props )
SAFEARRAY *sa;
BSTR str;
LONG i;
- UINT num_props = count_properties( view );
+ UINT num_props = count_selected_properties( view );
if (!(sa = SafeArrayCreateVector( VT_BSTR, 0, num_props ))) return E_OUTOFMEMORY;
@@ -973,6 +973,7 @@ HRESULT get_properties( const struct view *view, LONG flags, SAFEARRAY **props )
BOOL is_system;
if (is_method( view->table, i )) continue;
+ if (!is_selected_prop( view, view->table->columns[i].name )) continue;
is_system = is_system_prop( view->table->columns[i].name );
if ((flags & WBEM_FLAG_NONSYSTEM_ONLY) && is_system) continue;
More information about the wine-cvs
mailing list