Module: wine Branch: master Commit: b402ce89447cbce370e375079b41943ee5b0bd80 URL: https://gitlab.winehq.org/wine/wine/-/commit/b402ce89447cbce370e375079b41943... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Fri Sep 23 13:51:18 2022 +0200 ntdll: Fix GetTempPathW() call passing wrong unit for the buffer size. 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);