[PATCH 0/1] MR8264: kernel32/tests: Fix the string argument to WritePrivateProfileSectionA.
The string argument is expected to be one or more null terminated strings, with a final null character. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8264
From: Yuxuan Shui <yshui(a)codeweavers.com> The string argument is expected to be one or more null terminated strings, with a final null character. --- 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 59842627b4f..b98b68194ed 100644 --- a/dlls/kernel32/tests/profile.c +++ b/dlls/kernel32/tests/profile.c @@ -558,7 +558,7 @@ static void test_profile_directory_readonly(void) ret = WritePrivateProfileStringA("App", "key", "string", path_file); ok(ret == FALSE, "Expected FALSE, got %d\n", ret); - ret = WritePrivateProfileSectionA("App", "key=string", path_file); + ret = WritePrivateProfileSectionA("App", "key=string\0", path_file); ok(ret == FALSE, "Expected FALSE, got %d\n", ret); ret = WritePrivateProfileStructA("App", "key", lpStruct, sizeof(lpStruct), path_file); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8264
participants (2)
-
Yuxuan Shui -
Yuxuan Shui (@yshui)