wmic: Convert integer property values to BSTR.

Hans Leidekker hans at codeweavers.com
Tue Oct 1 04:35:46 CDT 2013


---
 programs/wmic/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/programs/wmic/main.c b/programs/wmic/main.c
index 8d89bf4..5aee4c1 100644
--- a/programs/wmic/main.c
+++ b/programs/wmic/main.c
@@ -229,6 +229,7 @@ static int query_prop( const WCHAR *alias, const WCHAR *propname )
         }
         if (IWbemClassObject_Get( obj, prop, 0, &v, NULL, NULL ) == WBEM_S_NO_ERROR)
         {
+            VariantChangeType( &v, &v, 0, VT_BSTR );
             output_string( fmtW, V_BSTR( &v ) );
             VariantClear( &v );
         }
-- 
1.8.1.5






More information about the wine-patches mailing list