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
1 changed files with 0 additions and 2 deletions

View File

@ -170,7 +170,6 @@ DWORD WINAPI FormatMessageA(
from = HEAP_strdupA( GetProcessHeap(), 0, (LPSTR)lpSource); from = HEAP_strdupA( GetProcessHeap(), 0, (LPSTR)lpSource);
} }
else { else {
dwMessageId &= 0xFFFF;
if (dwFlags & FORMAT_MESSAGE_FROM_SYSTEM) if (dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
hmodule = GetModuleHandleA("kernel32"); hmodule = GetModuleHandleA("kernel32");
bufsize=load_messageA(hmodule,dwMessageId,dwLanguageId,NULL,100); bufsize=load_messageA(hmodule,dwMessageId,dwLanguageId,NULL,100);
@ -381,7 +380,6 @@ DWORD WINAPI FormatMessageW(
from = HEAP_strdupWtoA(GetProcessHeap(),0,(LPWSTR)lpSource); from = HEAP_strdupWtoA(GetProcessHeap(),0,(LPWSTR)lpSource);
} }
else { else {
dwMessageId &= 0xFFFF;
if (dwFlags & FORMAT_MESSAGE_FROM_SYSTEM) if (dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
hmodule = GetModuleHandleA("kernel32"); hmodule = GetModuleHandleA("kernel32");
bufsize=load_messageA(hmodule,dwMessageId,dwLanguageId,NULL,100); bufsize=load_messageA(hmodule,dwMessageId,dwLanguageId,NULL,100);