request for windows test: GetPrivateProfileSectionNamesA

Austin English austinenglish at gmail.com
Fri Jan 30 14:50:24 CST 2009


On Fri, Jan 30, 2009 at 1:37 PM, Marcus Meissner <marcus at jet.franken.de> wrote:
> 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
>
>
>
>

Third crashes on 2k SP4 and XP SP3. First and second are okay.

--
-Austin



More information about the wine-devel mailing list