"Nigel Liang" <ncliang(a)gmail.com> wrote:
> +static const WCHAR UNICODE_PATH[] = {'c',':','\\','w',0x00ef,0x00f1,0x00eb,
> + 't',0x00e8,'s','t','\0','\0'}; /* "c:\winetest" */
The name above is definitely not "c:\winetest", also if you need a double
termination '\0' state it specifically.
> +static int IsWin9x(void)
> +{
> + OSVERSIONINFO winver;
> + GetVersionEx(&winver);
> + return winver.dwPlatformId==VER_PLATFORM_WIN32_WINDOWS;
> +}
(GetVersion() & 0x80000000) is much shorter way to detect win9x, but
if you need to test whether the platform supports unicode that's wrong,
have a look at other tests how it's done there.
--
Dmitry.