Ignore:
Timestamp:
Mar 20, 2003, 10:15:31 AM (22 years ago)
Author:
sandervl
Message:

WindowFromPoint: only send WM_NCHITTEST to windows belonging to the current thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/windowmsg.cpp

    r9865 r9928  
    1 /* $Id: windowmsg.cpp,v 1.40 2003-02-27 14:22:22 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.41 2003-03-20 09:15:31 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    169169BOOL WIN32API WaitMessage(void)
    170170{
    171     dprintf2(("USER32: WaitMessage"));
    172     return OSLibWinWaitMessage();
     171#ifdef DEBUG
     172    MSG msg;
     173
     174    if(PeekMessageA(&msg, 0, 0, 0, PM_NOREMOVE) == FALSE) {
     175          dprintf2(("USER32: WaitMessage %x", GetThreadHAB()));
     176    }
     177    else  dprintf2(("USER32: WaitMessage %x; message %x present", GetThreadHAB(), msg.message));
     178#endif
     179
     180    BOOL ret = OSLibWinWaitMessage();
     181#ifdef DEBUG
     182    if(PeekMessageA(&msg, 0, 0, 0, PM_NOREMOVE) == FALSE) {
     183          dprintf2(("USER32: WaitMessage returned with no message in the queue"));
     184    }
     185#endif
     186    return ret;
    173187}
    174188//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.