[12/17] include/wine: Print contents of VT_LPSTR and VT_LPWSTR variants in wine_dbgstr_variant.

Dmitry Timoshkov dmitry at baikal.ru
Mon Jun 19 23:37:31 CDT 2017


If there are objections to the approach this patch could be safely skipped,
it has no influence on the patch sequence (but it helps a lot with tracing
PROPVARIANT related activity in the windowscodecs query parser).

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 include/wine/debug.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/wine/debug.h b/include/wine/debug.h
index 5409d70c40..fb0d6bb737 100644
--- a/include/wine/debug.h
+++ b/include/wine/debug.h
@@ -296,6 +296,10 @@ static inline const char *wine_dbgstr_variant( const VARIANT *v )
         return wine_dbg_sprintf( "%p {VT_CY: %s}", v, wine_dbgstr_longlong(V_CY(v).int64) );
     case VT_DATE:
         return wine_dbg_sprintf( "%p {VT_DATE: %lf}", v, V_DATE(v) );
+    case VT_LPSTR:
+        return wine_dbg_sprintf( "%p {VT_LPSTR: %s}", v, wine_dbgstr_a((const char *)V_BSTR(v)) );
+    case VT_LPWSTR:
+        return wine_dbg_sprintf( "%p {VT_LPWSTR: %s}", v, wine_dbgstr_w(V_BSTR(v)) );
     case VT_BSTR:
         return wine_dbg_sprintf( "%p {VT_BSTR: %s}", v, wine_dbgstr_w(V_BSTR(v)) );
     case VT_DISPATCH:
-- 
2.13.1




More information about the wine-patches mailing list