Commit 0c790adf authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ntdll: Fix buffer size to MultiByteToWideChar.

parent 59f33330
...@@ -512,7 +512,7 @@ static void test_RtlDosPathNameToNtPathName_U(void) ...@@ -512,7 +512,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
for (i = 0; i < ARRAY_SIZE(tests); ++i) 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); ret = pRtlDosPathNameToNtPathName_U(path, &nameW, &file_part, NULL);
if (pRtlDosPathNameToNtPathName_U_WithStatus) if (pRtlDosPathNameToNtPathName_U_WithStatus)
...@@ -534,7 +534,7 @@ static void test_RtlDosPathNameToNtPathName_U(void) ...@@ -534,7 +534,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
continue; 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", ok(!lstrcmpW(nameW.Buffer, path), "%s: Expected %s, got %s.\n",
tests[i].dos, tests[i].nt, wine_dbgstr_w(nameW.Buffer)); tests[i].dos, tests[i].nt, wine_dbgstr_w(nameW.Buffer));
......
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