diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c index 1e300661b1b..f54c6e3ed32 100644 --- a/dlls/mshtml/main.c +++ b/dlls/mshtml/main.c @@ -439,11 +439,14 @@ HRESULT WINAPI DllUnregisterServer(void) const char *debugstr_variant(const VARIANT *v) { + if(!v) + return "(null)"; + switch(V_VT(v)) { case VT_EMPTY: - return wine_dbg_sprintf("{VT_EMPTY}"); + return "{VT_EMPTY}"; case VT_NULL: - return wine_dbg_sprintf("{VT_NULL}"); + return "{VT_NULL}"; case VT_I4: return wine_dbg_sprintf("{VT_I4: %d}", V_I4(v)); case VT_R8: