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:
parent
ee81036a16
commit
086a1a4ed2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue