Commit 50e8ea38 authored by Alexandre Julliard's avatar Alexandre Julliard

Do not truncate high word of message id.

parent ebcc72c9
......@@ -170,7 +170,6 @@ DWORD WINAPI FormatMessageA(
from = HEAP_strdupA( GetProcessHeap(), 0, (LPSTR)lpSource);
}
else {
dwMessageId &= 0xFFFF;
if (dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
hmodule = GetModuleHandleA("kernel32");
bufsize=load_messageA(hmodule,dwMessageId,dwLanguageId,NULL,100);
......@@ -381,7 +380,6 @@ DWORD WINAPI FormatMessageW(
from = HEAP_strdupWtoA(GetProcessHeap(),0,(LPWSTR)lpSource);
}
else {
dwMessageId &= 0xFFFF;
if (dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
hmodule = GetModuleHandleA("kernel32");
bufsize=load_messageA(hmodule,dwMessageId,dwLanguageId,NULL,100);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment