Do not truncate high word of message id.

This commit is contained in:
Alexandre Julliard 2000-11-01 01:51:12 +00:00
parent ebcc72c925
commit 50e8ea387b

View file

@ -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);