resend: patch: shell32.dll - SHELL_ArgifyW expands env-vars

James Hawkins truiken at gmail.com
Sat Sep 11 12:50:45 CDT 2004


What you need is this:

static const WCHAR nameOfVarW = {'%','s','%','%',0};

and then use nameOfVarW wherever you wanted L"%s%%".


On Sat, 11 Sep 2004 19:42:32 +0200, Jens Collin <jens.collin at lakhei.com> wrote:
> Hi Alexandre,
> 
> thanks for taking the time to review the patch.
> I'm very new to working with multibyte charsets overall, so I'd be happy
> if you could complete this or hint me what to change.
> 
> Thanks in advance,
> Jens 
> 
> 
> 
> -----Original Message-----
> From: wine-devel-admin at winehq.org [mailto:wine-devel-admin at winehq.org]
> On Behalf Of Alexandre Julliard
> Sent: den 10 september 2004 22:22
> To: Jens Collin
> Cc: wine-devel at winehq.org
> Subject: Re: resend: patch: shell32.dll - SHELL_ArgifyW expands env-vars
> 
> "Jens Collin" <jens.collin at lakhei.com> writes:
> 
> > +                     {
> > +                             TRACE("The env. var can't be found or is
> bigger than MAX_PATH => useless.");
> > +                             res += sprintfW(res, L"%s%%",
> tmpBuffer);
> 
> You cannot use Unicode strings constants in Wine, they don't have the
> right size.
> 
> --
> Alexandre Julliard
> julliard at winehq.org
> 
> 



-- 
James Hawkins



More information about the wine-devel mailing list