diff --git a/reactos/subsys/win32k/ntuser/message.c b/reactos/subsys/win32k/ntuser/message.c index 3eea05d4e5f..f95ea1b879f 100644 --- a/reactos/subsys/win32k/ntuser/message.c +++ b/reactos/subsys/win32k/ntuser/message.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: message.c,v 1.72 2004/08/26 12:29:37 gvg Exp $ +/* $Id: message.c,v 1.73 2004/09/12 19:29:22 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -855,7 +855,7 @@ IntWaitMessage(HWND Wnd, /* Nothing found. Wait for new messages. */ Status = MsqWaitForNewMessages(ThreadQueue); } - while (STATUS_WAIT_0 <= STATUS_WAIT_0 && Status <= STATUS_WAIT_63); + while (STATUS_WAIT_0 <= Status && Status <= STATUS_WAIT_63); SetLastNtError(Status); @@ -953,9 +953,9 @@ NtUserGetMessage(PNTUSERGETMESSAGEINFO UnsafeInfo, return (BOOL) -1; } } - else - { - IntWaitMessage(Wnd, MsgFilterMin, MsgFilterMax); + else if (! IntWaitMessage(Wnd, MsgFilterMin, MsgFilterMax)) + { + return (BOOL) -1; } } while (! GotMessage); diff --git a/reactos/subsys/win32k/ntuser/msgqueue.c b/reactos/subsys/win32k/ntuser/msgqueue.c index b1990b4a363..fb7f3552c78 100644 --- a/reactos/subsys/win32k/ntuser/msgqueue.c +++ b/reactos/subsys/win32k/ntuser/msgqueue.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: msgqueue.c,v 1.105 2004/08/28 15:01:46 gvg Exp $ +/* $Id: msgqueue.c,v 1.106 2004/09/12 19:29:23 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -425,7 +425,7 @@ MsqPeekHardwareMessage(PUSER_MESSAGE_QUEUE MessageQueue, HWND hWnd, do { WaitStatus = KeWaitForMultipleObjects(2, WaitObjects, WaitAny, UserRequest, - UserMode, TRUE, NULL, NULL); + UserMode, FALSE, NULL, NULL); while (MsqDispatchOneSentMessage(MessageQueue)) { ; @@ -1091,7 +1091,7 @@ MsqWaitForNewMessages(PUSER_MESSAGE_QUEUE MessageQueue) WaitAny, Executive, UserMode, - TRUE, + FALSE, NULL, NULL)); }