mshtml: Improved debugstr_variant implementation.

This commit is contained in:
Jacek Caban 2010-02-03 16:17:29 +01:00 committed by Alexandre Julliard
parent 1ff1e11161
commit 9a92f9cb4a
1 changed files with 5 additions and 2 deletions

View File

@ -439,11 +439,14 @@ HRESULT WINAPI DllUnregisterServer(void)
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: