kernel32: fix PROFILE_Load to handle mac line endings (try 2)
Paul Vriens
paul.vriens.wine at gmail.com
Sun Sep 14 14:36:23 CDT 2008
Erik Inge Bolsø wrote:
> Fixes bug 15281. With testcase.
> diff --git a/dlls/kernel32/tests/profile.c b/dlls/kernel32/tests/profile.c
> index 8a3e83b..1cc963c 100644
> --- a/dlls/kernel32/tests/profile.c
> +++ b/dlls/kernel32/tests/profile.c
> @@ -694,6 +694,273 @@ static void test_GetPrivateProfileString(void)
> DeleteFileA(filename);
> }
>
> +/* as above, but cr-only terminated lines */
> +static void test_cr(void)
> +{
As you've stated this is exactly the same code (260 or so lines) with
only the content struct being different.
I think it's better to rewrite the current test_GetPrivateProfileString
to take content as a parameter and call it with both types of content.
--
Cheers,
Paul.
More information about the wine-devel
mailing list