Ignore:
Timestamp:
May 7, 2003, 6:13:26 PM (22 years ago)
Author:
sandervl
Message:

check for suspended in WaitMessage condition in PM window handlers

File:
1 edited

Legend:

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

    r10061 r10078  
    1 /* $Id: pmwindow.cpp,v 1.214 2003-05-02 17:18:55 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.215 2003-05-07 16:13:26 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    507507    // - unless this is WM_CREATE (the very first message), there has to be
    508508    //   a USER32 window object for this window handle
    509     if(!teb || (msg != WM_CREATE && win32wnd == NULL)) {
    510         dprintf(("OS2: Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
     509    // - thread must not be suspended in WaitMessage
     510    if(!teb || (msg != WM_CREATE && win32wnd == NULL) || teb->o.odin.fWaitMessageSuspend) {
     511        if(teb->o.odin.fWaitMessageSuspend)
     512             dprintf(("OS2: fWaitMessageSuspend window %x msg %x -> run default frame proc", hwnd, msg));
     513        else dprintf(("OS2: Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
    511514        goto RunDefWndProc;
    512515    }
     
    11531156    // - unless this is WM_CREATE (the very first message), there has to be
    11541157    //   a USER32 window object for this window handle
    1155     if(!teb || (msg != WM_CREATE && win32wnd == NULL)) {
    1156         dprintf(("PMFRAME: Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
     1158    // - thread must not be suspended in WaitMessage
     1159    if(!teb || (msg != WM_CREATE && win32wnd == NULL) || teb->o.odin.fWaitMessageSuspend) {
     1160        if(teb->o.odin.fWaitMessageSuspend)
     1161             dprintf(("PMFRAME: fWaitMessageSuspend window %x msg %x -> run default frame proc", hwnd, msg));
     1162        else dprintf(("PMFRAME: Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
    11571163        goto RunDefFrameWndProc;
    11581164    }
Note: See TracChangeset for help on using the changeset viewer.