mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 20:12:42 +00:00
ntdll: Fix buffer size to MultiByteToWideChar.
Signed-off-by: Marcus Meissner <meissner@suse.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
59f333307e
commit
0c790adf30
|
@ -512,7 +512,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
|
|||
|
||||
for (i = 0; i < ARRAY_SIZE(tests); ++i)
|
||||
{
|
||||
MultiByteToWideChar(CP_ACP, 0, tests[i].dos, -1, path, sizeof(path));
|
||||
MultiByteToWideChar(CP_ACP, 0, tests[i].dos, -1, path, ARRAY_SIZE(path));
|
||||
ret = pRtlDosPathNameToNtPathName_U(path, &nameW, &file_part, NULL);
|
||||
|
||||
if (pRtlDosPathNameToNtPathName_U_WithStatus)
|
||||
|
@ -534,7 +534,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
|
|||
continue;
|
||||
}
|
||||
|
||||
MultiByteToWideChar(CP_ACP, 0, tests[i].nt, -1, path, sizeof(path));
|
||||
MultiByteToWideChar(CP_ACP, 0, tests[i].nt, -1, path, ARRAY_SIZE(path));
|
||||
ok(!lstrcmpW(nameW.Buffer, path), "%s: Expected %s, got %s.\n",
|
||||
tests[i].dos, tests[i].nt, wine_dbgstr_w(nameW.Buffer));
|
||||
|
||||
|
|
Loading…
Reference in a new issue