Ignore:
Timestamp:
Oct 15, 1999, 3:52:56 PM (26 years ago)
Author:
sandervl
Message:

Window destruction fixes

File:
1 edited

Legend:

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

    r1306 r1311  
    1 /* $Id: pmwindow.cpp,v 1.29 1999-10-15 09:26:22 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.30 1999-10-15 13:52:54 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    261261
    262262        if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
    263             if (win32wnd->isChild())
    264                 hParent = win32wnd->getParent()->getOS2WindowHandle();
     263            if (win32wnd->isChild()) {
     264                if(win32wnd->getParent()) {
     265                        hParent = win32wnd->getParent()->getOS2WindowHandle();
     266                }
     267                else    break;
     268            }
    265269            else
    266270                hFrame = win32wnd->getOS2FrameWindowHandle();
     
    294298
    295299        if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
    296             if (win32wnd->isChild())
    297                 hParent = win32wnd->getParent()->getOS2WindowHandle();
     300            if (win32wnd->isChild()) {
     301                if(win32wnd->getParent()) {
     302                        hParent = win32wnd->getParent()->getOS2WindowHandle();
     303                }
     304                else    goto RunDefWndProc; //parent has just been destroyed
     305            }
    298306            else
    299307                hFrame = WinQueryWindow(hwnd, QW_PARENT);
Note: See TracChangeset for help on using the changeset viewer.