mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Allow sending of messages from non-GUI threads
svn path=/trunk/; revision=4643
This commit is contained in:
parent
e16ddc6bdf
commit
9f2567f198
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: message.c,v 1.12 2003/03/06 23:57:03 gvg Exp $
|
||||
/* $Id: message.c,v 1.13 2003/05/04 15:42:21 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -23,7 +23,7 @@
|
|||
#include <include/callback.h>
|
||||
#include <include/painting.h>
|
||||
|
||||
//#define NDEBUG
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
@ -390,7 +390,8 @@ W32kSendMessage(HWND hWnd,
|
|||
|
||||
/* FIXME: Check for an exiting window. */
|
||||
|
||||
if (Window->MessageQueue == PsGetWin32Thread()->MessageQueue)
|
||||
if (NULL != PsGetWin32Thread() &&
|
||||
Window->MessageQueue == PsGetWin32Thread()->MessageQueue)
|
||||
{
|
||||
if (KernelMessage)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue