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@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@winehq.org [mailto:wine-devel-admin@winehq.org] On Behalf Of Alexandre Julliard Sent: den 10 september 2004 22:22 To: Jens Collin Cc: wine-devel@winehq.org Subject: Re: resend: patch: shell32.dll - SHELL_ArgifyW expands env-vars
"Jens Collin" jens.collin@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@winehq.org