Ignore:
Timestamp:
May 25, 2001, 9:59:30 PM (24 years ago)
Author:
sandervl
Message:

Post(Thread)/SendMessage updates & fixes

File:
1 edited

Legend:

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

    r5606 r5805  
    1 /* $Id: windowmsg.cpp,v 1.24 2001-04-27 17:36:39 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.25 2001-05-25 19:59:30 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    8585 BOOL fFoundMsg;
    8686 
    87     dprintf2(("PeekMessagA %x %d-%d %d", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg));
     87    dprintf2(("PeekMessageA %x %d-%d %d", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg));
    8888    fFoundMsg = OSLibWinPeekMsg(msg, hwndOwner, uMsgFilterMin, uMsgFilterMax,
    8989                                fuRemoveMsg, FALSE);
    9090    if(fFoundMsg) {
    91         dprintf2(("PeekMessagA %x %d-%d %d found message %x %d %x %x", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg, msg->hwnd, msg->message, msg->wParam, msg->lParam));
     91        dprintf2(("PeekMessageA %x %d-%d %d found message %x %d %x %x", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg, msg->hwnd, msg->message, msg->wParam, msg->lParam));
    9292        HOOK_CallHooksA(WH_GETMESSAGE, HC_ACTION, fuRemoveMsg & PM_REMOVE, (LPARAM)msg );
    9393        if (msg->message == WM_QUIT && (fuRemoveMsg & PM_REMOVE)) {
     
    104104 BOOL fFoundMsg;
    105105
    106     dprintf2(("PeekMessagW %x %d-%d %d", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg));
     106    dprintf2(("PeekMessageW %x %d-%d %d", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg));
    107107    fFoundMsg = OSLibWinPeekMsg(msg, hwndOwner, uMsgFilterMin, uMsgFilterMax,
    108108                                fuRemoveMsg, FALSE);
    109109    if(fFoundMsg) {
    110         dprintf2(("PeekMessagW %x %d-%d %d found message %x %d %x %x", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg, msg->hwnd, msg->message, msg->wParam, msg->lParam));
     110        dprintf2(("PeekMessageW %x %d-%d %d found message %x %d %x %x", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg, msg->hwnd, msg->message, msg->wParam, msg->lParam));
    111111        HOOK_CallHooksW(WH_GETMESSAGE, HC_ACTION, fuRemoveMsg & PM_REMOVE, (LPARAM)msg );
    112112        if (msg->message == WM_QUIT && (fuRemoveMsg & (PM_REMOVE))) {
     
    10511051/* Synchronization Functions */
    10521052//******************************************************************************
    1053 DWORD MsgWaitForMultipleObjects(DWORD nCount, LPHANDLE pHandles, BOOL fWaitAll,
    1054                                 DWORD dwMilliseconds, DWORD dwWakeMask)
    1055 {
    1056  DWORD curtime, endtime;
     1053DWORD WIN32API MsgWaitForMultipleObjects(DWORD nCount, LPHANDLE pHandles, BOOL fWaitAll,
     1054                                         DWORD dwMilliseconds, DWORD dwWakeMask)
     1055{
     1056 DWORD curtime, endtime, ret;
    10571057 MSG msg;
    10581058
     
    10971097  }
    10981098  //SvL: Call handlemanager function as we need to translate handles
    1099   return HMMsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask);
    1100 }
     1099  //TODO: doesn't work at all if waiting for message
     1100  ret = HMMsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask);
     1101  return ret;
     1102}
Note: See TracChangeset for help on using the changeset viewer.