PATCH: dlls/commdlg/printdlg.c add casts

Vincent Béron vberon at mecano.gme.usherb.ca
Sat Jun 28 16:56:23 CDT 2003


Le sam 28/06/2003 à 17:27, Marcus Meissner a écrit :
> > Actually, since I can't find that option passed to gcc anymore, how does
> > Wine gets its binary compatibility with native apps regarding this
> > issue?
> 
> Hmm? The native apps when compiled use the option -fshort-wchar,
> see : tools/winegcc.c:        gcc_argv[i++] = "-fshort-wchar";

I was talking about a random foo.exe in PE format. How does Wine
understands the WSTR from it if it's not itself compiled with
-fshort-wchar?

> 
> > I'm asking because I saw a couple L"_text" while grepping for answering
> > Mike...
> 
> There ain't:
> 
> ./dlls/kernel/messages/winerr_enu.mc.rc: L"Success\n\x0000\x0000",
> 	is handled by wmc
> 
> ./dlls/shlwapi/ordinal.c:       lstrlenW(L"{D0FCA420-D3F5-11CF-B211-00AA004AE837
> }");
> ./dlls/shlwapi/ordinal.c:       StrCpyW(a6,  L"{D0FCA420-D3F5-11CF-B211-00AA004A
> E837}");
> 	#if 0'ed out.
> 
> ./include/wincrypt.h (and one other .h file) use L"" protected by MSVC
> checks.

My fault, just grepped and didn't checked the context for that StrCpyW.

Thanks Marcus.

Vincent




More information about the wine-devel mailing list