[PATCH] kernel32: fixed size to GetTempPathW

Marcus Meissner marcus at jet.franken.de
Wed Aug 30 12:59:47 CDT 2017


wants character size, not bytes.

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
---
 dlls/kernel32/tests/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/kernel32/tests/module.c b/dlls/kernel32/tests/module.c
index bfe94b9140..108d0cb999 100644
--- a/dlls/kernel32/tests/module.c
+++ b/dlls/kernel32/tests/module.c
@@ -971,7 +971,7 @@ static void test_AddDllDirectory(void)
     }
 
     buf[0] = '\0';
-    GetTempPathW( sizeof(path), path );
+    GetTempPathW( sizeof(path)/sizeof(path[0]), path );
     GetTempFileNameW( path, tmpW, 0, buf );
     SetLastError( 0xdeadbeef );
     cookie = pAddDllDirectory( buf );
-- 
2.14.1




More information about the wine-patches mailing list