Re: [PATCH] windows-nat: Decode system error numbers

Eli Zaretskii
2011-11-09T17:03:39Z

> From: Pedro Alves <pedro@codesourcery.com>
> Date: Wed, 9 Nov 2011 16:58:00 +0000
> Cc: "Maciej W. Rozycki" <macro@codesourcery.com>
>
> > Will this DTRT with Cygwin, which AFAIK wants the wide versions of the
> > APIs? Is, for example, "char buf[1025];" appropriate in that case?
>
> Yeah, if UNICODE is defined, FormatMessage maps to FormatMessageW and
> buf will be filled with a wide string, though I'm not sure
> if __USEWIDE implies UNICODE.

But buf[] should be TCHAR then, shouldn't it?