From e3a1a7262db514c20fdbdbfd4ed8b576b43463a5 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 16 Feb 2014 01:05:04 +0000 Subject: [PATCH] - Fix crash reported in CORE-6734. svn path=/trunk/; revision=62201 --- reactos/win32ss/user/ntuser/msgqueue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/win32ss/user/ntuser/msgqueue.c b/reactos/win32ss/user/ntuser/msgqueue.c index eef085783bd..f4475111ded 100644 --- a/reactos/win32ss/user/ntuser/msgqueue.c +++ b/reactos/win32ss/user/ntuser/msgqueue.c @@ -1775,6 +1775,7 @@ co_MsqPeekHardwareMessage(IN PTHREADINFO pti, if (IsListEmpty(CurrentEntry)) break; if (!CurrentMessage) break; CurrentEntry = CurrentMessage->ListEntry.Flink; + if (!CurrentEntry) break; //// Fix CORE-6734 reported crash. /* MSDN: 1: any window that belongs to the current thread, and any messages on the current thread's message queue whose hwnd value is NULL. -- 2.17.1