kernel32: test GetPrivateProfileString with empty string as key and section [2nd]

Stefan Leichter Stefan.Leichter at camline.com
Fri Aug 21 06:03:37 CDT 2009


Am Friday 21 August 2009 11:32:43 schrieb Michael Stefaniuc:
> Hello Stefan,
>
> Stefan Leichter wrote:
> > Problem spotted from Claudio Fontana on wine-devel
> >
> > tested on Win2K
> >
> > diff -ruw wine-git/dlls/kernel32/tests/profile.c
> > wine-build/dlls/kernel32/tests/profile.c ---
> > wine-git/dlls/kernel32/tests/profile.c	2009-06-04 19:00:09.000000000
> > +0200 +++ wine-build/dlls/kernel32/tests/profile.c	2009-08-16
> > 23:03:37.000000000 +0200 @@ -41,6 +41,13 @@
> >      UINT result9x;
> >  };
> >
> > +static const char *debugstr_w(LPCWSTR str)
>
> you don't need to add a local debugstr_w implementation anymore.
> Alexandre added wine_dbgstr_w() to test.h two days ago with commit
> ee868cce5b412b103ff167deb59c3d5237363199.
>
> > +{
> > +    static char buf[1024];
> > +    WideCharToMultiByte(CP_ACP, 0, str, -1, buf, sizeof(buf), NULL,
> > NULL); +    return buf;
> > +}
> > +
> >  static void test_profile_int(void)
> >  {
> >      struct _profileInt profileInt[]={
>
> bye
> 	michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetPrivateProfileString.diff
Type: text/x-diff
Size: 2330 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090821/99d80558/attachment.diff>


More information about the wine-patches mailing list