The string argument is expected to be one or more null terminated strings, with a final null character.
From: Yuxuan Shui yshui@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);