wbemprox: Set correct variant type if array property value is NULL.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2015-12-23 11:07:39 +01:00 committed by Alexandre Julliard
parent ee81036a16
commit 086a1a4ed2
1 changed files with 2 additions and 1 deletions

View File

@ -841,7 +841,8 @@ HRESULT get_propval( const struct view *view, UINT index, const WCHAR *name, VAR
CIMTYPE basetype = view->table->columns[column].type & CIM_TYPE_MASK; CIMTYPE basetype = view->table->columns[column].type & CIM_TYPE_MASK;
val_ptr = to_safearray( (const struct array *)(INT_PTR)val, basetype ); val_ptr = to_safearray( (const struct array *)(INT_PTR)val, basetype );
if (!vartype) vartype = to_vartype( basetype ) | VT_ARRAY; if (!val_ptr) vartype = VT_NULL;
else if (!vartype) vartype = to_vartype( basetype ) | VT_ARRAY;
goto done; goto done;
} }
switch (view->table->columns[column].type & COL_TYPE_MASK) switch (view->table->columns[column].type & COL_TYPE_MASK)