Module: wine Branch: master Commit: d74cf43fbec6359c0d04493838791d763da92b6e URL: http://source.winehq.org/git/wine.git/?a=commit;h=d74cf43fbec6359c0d04493838...
Author: Hans Leidekker hans@codeweavers.com Date: Fri Jan 25 17:33:24 2013 +0100
wbemprox: Check the result count instead of the result pointer in get_propval.
---
dlls/wbemprox/query.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c index 1123159..2d416ef 100644 --- a/dlls/wbemprox/query.c +++ b/dlls/wbemprox/query.c @@ -650,7 +650,7 @@ HRESULT get_propval( const struct view *view, UINT index, const WCHAR *name, VAR LONGLONG val;
if (is_system_prop( name )) return get_system_propval( view, index, name, ret, type, flavor ); - if (!view->result || !is_selected_prop( view, name )) return WBEM_E_NOT_FOUND; + if (!view->count || !is_selected_prop( view, name )) return WBEM_E_NOT_FOUND;
hr = get_column_index( view->table, name, &column ); if (hr != S_OK || is_method( view->table, column )) return WBEM_E_NOT_FOUND;