Ignore:
Timestamp:
Aug 1, 2002, 6:10:51 PM (23 years ago)
Author:
sandervl
Message:

moved queue status check

File:
1 edited

Legend:

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

    r8954 r8956  
    1 /* $Id: windowmsg.cpp,v 1.36 2002-08-01 16:05:51 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.37 2002-08-01 16:10:51 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    934934       return WAIT_ABANDONED;
    935935    }
     936    //if the msg queue already contains the messages defined by dwWakeMask,
     937    //then return immediately
     938    if(GetQueueStatus(dwWakeMask) != 0) {
     939        return WAIT_OBJECT_0+nCount;
     940    }
    936941    if(dwWakeMask & QS_POSTMESSAGE) {
    937         if(GetQueueStatus(dwWakeMask) != 0) {
    938             return WAIT_OBJECT_0+nCount;
    939         }
    940 
    941942        HANDLE *pHandlesTmp = (HANDLE *)alloca((nCount+1)*sizeof(HANDLE));
    942943        if(pHandlesTmp == NULL || !teb->o.odin.hPostMsgEvent) {
Note: See TracChangeset for help on using the changeset viewer.