Commit b402ce89 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ntdll: Fix GetTempPathW() call passing wrong unit for the buffer size.

parent ec6b6f38
...@@ -2312,7 +2312,7 @@ static void test_NtRegLoadKeyEx(void) ...@@ -2312,7 +2312,7 @@ static void test_NtRegLoadKeyEx(void)
UNICODE_STRING hivefile_pathW, key_pathW; UNICODE_STRING hivefile_pathW, key_pathW;
HANDLE key = 0; HANDLE key = 0;
GetTempPathW(sizeof(temp_path), temp_path); GetTempPathW(ARRAY_SIZE(temp_path), temp_path);
GetTempFileNameW(temp_path, L"key", 0, hivefile_path); GetTempFileNameW(temp_path, L"key", 0, hivefile_path);
DeleteFileW(hivefile_path); DeleteFileW(hivefile_path);
RtlDosPathNameToNtPathName_U(hivefile_path, &hivefile_pathW, NULL, NULL); RtlDosPathNameToNtPathName_U(hivefile_path, &hivefile_pathW, NULL, NULL);
......
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