kernel32/tests: Unconstify a character string

Frédéric Delanoy frederic.delanoy at gmail.com
Thu Jan 9 05:10:17 CST 2014


GetPrivateProfileString crashes under win2k when given a const empty string as lpAppName argument
(even if said parameter is supposed to be constant).
---
 dlls/kernel32/tests/profile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/kernel32/tests/profile.c b/dlls/kernel32/tests/profile.c
index c6e0b61..48e6555 100644
--- a/dlls/kernel32/tests/profile.c
+++ b/dlls/kernel32/tests/profile.c
@@ -92,7 +92,7 @@ static void test_profile_int(void)
 
 static void test_profile_string(void)
 {
-    static const WCHAR emptyW[] = { 0 };
+    static WCHAR emptyW[] = { 0 };
     static const WCHAR keyW[] = { 'k','e','y',0 };
     static const WCHAR sW[] = { 's',0 };
     static const WCHAR TESTFILE2W[] = {'.','\\','t','e','s','t','w','i','n','e','2','.','i','n','i',0};
-- 
1.8.5.2




More information about the wine-patches mailing list