jscript: Fixed debugstr_variant for NULL argument.
This commit is contained in:
parent
d918a1890b
commit
a94c25f3ae
@ -31,11 +31,14 @@ WINE_DECLARE_DEBUG_CHANNEL(heap);
|
|||||||
|
|
||||||
const char *debugstr_variant(const VARIANT *v)
|
const char *debugstr_variant(const VARIANT *v)
|
||||||
{
|
{
|
||||||
|
if(!v)
|
||||||
|
return "(null)";
|
||||||
|
|
||||||
switch(V_VT(v)) {
|
switch(V_VT(v)) {
|
||||||
case VT_EMPTY:
|
case VT_EMPTY:
|
||||||
return wine_dbg_sprintf("{VT_EMPTY}");
|
return "{VT_EMPTY}";
|
||||||
case VT_NULL:
|
case VT_NULL:
|
||||||
return wine_dbg_sprintf("{VT_NULL}");
|
return "{VT_NULL}";
|
||||||
case VT_I4:
|
case VT_I4:
|
||||||
return wine_dbg_sprintf("{VT_I4: %d}", V_I4(v));
|
return wine_dbg_sprintf("{VT_I4: %d}", V_I4(v));
|
||||||
case VT_R8:
|
case VT_R8:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user