shlwapi/tests: Pass the correct buffer size to WideCharToMultiByte().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f2f52bcb28
commit
8445bf3428
|
@ -694,7 +694,7 @@ static void test_StrFormatKBSizeW(void)
|
|||
while(result->value)
|
||||
{
|
||||
pStrFormatKBSizeW(result->value, szBuffW, 256);
|
||||
WideCharToMultiByte(CP_ACP,0,szBuffW,-1,szBuff,sizeof(szBuff)/sizeof(WCHAR),NULL,NULL);
|
||||
WideCharToMultiByte(CP_ACP, 0, szBuffW, -1, szBuff, ARRAY_SIZE(szBuff), NULL, NULL);
|
||||
|
||||
ok(!strcmp(result->kb_size, szBuff), "Formatted %s wrong: got %s, expected %s\n",
|
||||
wine_dbgstr_longlong(result->value), szBuff, result->kb_size);
|
||||
|
|
Loading…
Reference in New Issue