Hi,
Could someone please test those, I want to see if
the second or third crash on Windows to handle those
borderline cases.
Ciao & Thanks, Marcus
---
dlls/kernel32/tests/profile.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/tests/profile.c b/dlls/kernel32/tests/profile.c
index 5292c33..feeb7b2 100644
--- a/dlls/kernel32/tests/profile.c
+++ b/dlls/kernel32/tests/profile.c
@@ -214,6 +214,13 @@ static void test_profile_sections_names(void)
WriteFile( h, content, sizeof(content), &count, NULL);
CloseHandle( h);
+ ret = GetPrivateProfileSectionNamesA( NULL, 0, testfile3 );
+ ok (ret == 0, "GetPrivateProfileSectionNamesA(NULL,0) returned %d instead of 0\n", ret);
+ ret = GetPrivateProfileSectionNamesA( buf, 0, testfile3 );
+ ok (ret == 0, "GetPrivateProfileSectionNamesA(buf,0) returned %d instead of 0\n", ret);
+ ret = GetPrivateProfileSectionNamesA( NULL, 1, testfile3 );
+ ok (ret == 0, "GetPrivateProfileSectionNamesA(NULL,1) returned %d instead of 0\n", ret);
+
/* Test with sufficiently large buffer */
memset(buf, 0xc, sizeof(buf));
ret = GetPrivateProfileSectionNamesA( buf, 29, testfile3 );
--
1.5.6