mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Fixes return values for PeekMessageA/W
svn path=/trunk/; revision=41755
This commit is contained in:
parent
09f8aa06a9
commit
b060be6762
1 changed files with 7 additions and 7 deletions
|
@ -1551,21 +1551,21 @@ PeekMessageA(LPMSG lpMsg,
|
|||
|
||||
MsgConversionCleanup(lpMsg, TRUE, FALSE, NULL);
|
||||
Res = NtUserPeekMessage(&Info, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
||||
if (-1 == (int) Res || ! Res)
|
||||
if (-1 == (int) Res || !Res)
|
||||
{
|
||||
return Res;
|
||||
return FALSE;
|
||||
}
|
||||
Conversion.LParamSize = Info.LParamSize;
|
||||
Conversion.KMMsg = Info.Msg;
|
||||
|
||||
if (! MsgiKMToUMMessage(&Conversion.KMMsg, &Conversion.UnicodeMsg))
|
||||
{
|
||||
return (BOOL) -1;
|
||||
return FALSE;
|
||||
}
|
||||
if (! MsgiUnicodeToAnsiMessage(&Conversion.AnsiMsg, &Conversion.UnicodeMsg))
|
||||
{
|
||||
MsgiKMToUMCleanup(&Info.Msg, &Conversion.UnicodeMsg);
|
||||
return (BOOL) -1;
|
||||
return FALSE;
|
||||
}
|
||||
if (!lpMsg)
|
||||
{
|
||||
|
@ -1604,16 +1604,16 @@ PeekMessageW(
|
|||
|
||||
MsgConversionCleanup(lpMsg, FALSE, FALSE, NULL);
|
||||
Res = NtUserPeekMessage(&Info, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
||||
if (-1 == (int) Res || ! Res)
|
||||
if (-1 == (int) Res || !Res)
|
||||
{
|
||||
return Res;
|
||||
return FALSE;
|
||||
}
|
||||
Conversion.LParamSize = Info.LParamSize;
|
||||
Conversion.KMMsg = Info.Msg;
|
||||
|
||||
if (! MsgiKMToUMMessage(&Conversion.KMMsg, &Conversion.UnicodeMsg))
|
||||
{
|
||||
return (BOOL) -1;
|
||||
return FALSE;
|
||||
}
|
||||
if (!lpMsg)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue