Jacek Caban : mshtml: Improved debugstr_variant implementation.

Alexandre Julliard julliard at winehq.org
Wed Feb 3 09:33:08 CST 2010


Module: wine
Branch: master
Commit: 9a92f9cb4a477bbf0609be13f8d41d979612ea04
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9a92f9cb4a477bbf0609be13f8d41d979612ea04

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Feb  3 16:17:29 2010 +0100

mshtml: Improved debugstr_variant implementation.

---

 dlls/mshtml/main.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c
index 1e30066..f54c6e3 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:




More information about the wine-cvs mailing list