Author: dchapyshev
Date: Fri Jul 3 13:53:34 2009
New Revision: 41755
URL:
http://svn.reactos.org/svn/reactos?rev=41755&view=rev
Log:
- Fixes return values for PeekMessageA/W
Modified:
trunk/reactos/dll/win32/user32/windows/message.c
Modified: trunk/reactos/dll/win32/user32/windows/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/message.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/message.c [iso-8859-1] Fri Jul 3 13:53:34
2009
@@ -1551,21 +1551,21 @@
MsgConversionCleanup(lpMsg, TRUE, FALSE, NULL);
Res = NtUserPeekMessage(&Info, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
- if (-1 == (int) Res || ! Res)
- {
- return Res;
+ if (-1 == (int) Res || !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 @@
MsgConversionCleanup(lpMsg, FALSE, FALSE, NULL);
Res = NtUserPeekMessage(&Info, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
- if (-1 == (int) Res || ! Res)
- {
- return Res;
+ if (-1 == (int) Res || !Res)
+ {
+ return FALSE;
}
Conversion.LParamSize = Info.LParamSize;
Conversion.KMMsg = Info.Msg;
if (! MsgiKMToUMMessage(&Conversion.KMMsg, &Conversion.UnicodeMsg))
{
- return (BOOL) -1;
+ return FALSE;
}
if (!lpMsg)
{