[PATCH 0/1] MR1005: ntdll: fixed size passed to GetTempPathW
Signed-off-by: Marcus Meissner <marcus(a)jet.franken.de> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1005
From: Marcus Meissner <marcus(a)jet.franken.de> Signed-off-by: Marcus Meissner <marcus(a)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); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1005
Please change the commit message (and PR title) to something like `ntdll: Fix GetTempPathW() call passing wrong unit for the buffer size.`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1005#note_10026
participants (3)
-
Davide Beatrici (@davidebeatrici) -
Marcus Meissner -
Marcus Meissner (@msmeissn)