Commit 20971961 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wmiutils: Use wide-char string literals.

parent 02692970
......@@ -92,13 +92,11 @@ static HRESULT WINAPI status_code_GetErrorCodeText(
LONG flags,
BSTR *text )
{
static const WCHAR fmt[] =
{'E','r','r','o','r',' ','c','o','d','e',':',' ','0','x','%','0','8','x',0};
WCHAR msg[32];
FIXME("%p, 0x%08x, 0x%04x, 0x%08x, %p\n", iface, res, lcid, flags, text);
swprintf(msg, ARRAY_SIZE(msg), fmt, res);
swprintf(msg, ARRAY_SIZE(msg), L"Error code: 0x%08x", res);
*text = SysAllocString(msg);
return WBEM_S_NO_ERROR;
}
......@@ -110,13 +108,11 @@ static HRESULT WINAPI status_code_GetFacilityCodeText(
LONG flags,
BSTR *text )
{
static const WCHAR fmt[] =
{'F','a','c','i','l','i','t','y',' ','c','o','d','e',':',' ','0','x','%','0','8','x',0};
WCHAR msg[32];
FIXME("%p, 0x%08x, 0x%04x, 0x%08x, %p\n", iface, res, lcid, flags, text);
swprintf(msg, ARRAY_SIZE(msg), fmt, res);
swprintf(msg, ARRAY_SIZE(msg), L"Facility code: 0x%08x", res);
*text = SysAllocString(msg);
return WBEM_S_NO_ERROR;
}
......
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