From: Marcus Meissner marcus@jet.franken.de
Signed-off-by: Marcus Meissner marcus@jet.franken.de --- dlls/ntdll/tests/reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c index c7d9d7e4c7f..4b0e558e271 100644 --- a/dlls/ntdll/tests/reg.c +++ b/dlls/ntdll/tests/reg.c @@ -2312,7 +2312,7 @@ static void test_NtRegLoadKeyEx(void) UNICODE_STRING hivefile_pathW, key_pathW; HANDLE key = 0;
- GetTempPathW(sizeof(temp_path), temp_path); + GetTempPathW(ARRAY_SIZE(temp_path), temp_path); GetTempFileNameW(temp_path, L"key", 0, hivefile_path); DeleteFileW(hivefile_path); RtlDosPathNameToNtPathName_U(hivefile_path, &hivefile_pathW, NULL, NULL);
Please change the commit message (and PR title) to something like `ntdll: Fix GetTempPathW() call passing wrong unit for the buffer size.`.