Commit 5f42c9e3 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

wbemprox: Fix string length in get_value_bstr().

parent 32966439
......@@ -178,7 +178,7 @@ BSTR get_value_bstr( const struct table *table, UINT row, UINT column )
if (!val) return NULL;
len = lstrlenW( (const WCHAR *)(INT_PTR)val ) + 2;
if (!(ret = SysAllocStringLen( NULL, len ))) return NULL;
swprintf( ret, len, L"\"%s\"", (const WCHAR *)(INT_PTR)val );
swprintf( ret, len + 1, L"\"%s\"", (const WCHAR *)(INT_PTR)val );
return ret;
case CIM_SINT16:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment