FormatMessage Fix
Ryan Cumming
ryan at completely.kicks-ass.org
Sun Nov 3 22:59:42 CST 2002
Hi,
FormatMessage currently fails if both the FORMAT_MESSAGE_FROM_HMODULE
and FORMAT_MESSAGE_FROM_SYSTEM flags are set. However, MSDN states that in
this case, the module's messages should be searched first, and then we should
fall back on the system messages. This patch attempts to fix this. With this
patch applied, WinXP's CMD.EXE can find its messages and becomes a lot more
useful.
ChangeLog:
* dlls/kernel/format_msg.c
Handle FORMAT_MESSAGE_FROM_HMODULE and FORMAT_MESSAGE_FROM_SYSTEM both being
set at once
-Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: format-message.diff
Type: text/x-diff
Size: 8980 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021103/10a1625c/format-message.bin
More information about the wine-patches
mailing list