- Fix crash reported in CORE-6734.
authorJames Tabor <james.tabor@reactos.org>
Sun, 16 Feb 2014 01:05:04 +0000 (01:05 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sun, 16 Feb 2014 01:05:04 +0000 (01:05 +0000)
svn path=/trunk/; revision=62201

reactos/win32ss/user/ntuser/msgqueue.c

index eef0857..f447511 100644 (file)
@@ -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.