Changeset 2089 for trunk/src


Ignore:
Timestamp:
Dec 16, 1999, 1:47:21 AM (26 years ago)
Author:
sandervl
Message:

Fix for crash during destruction of window with children

File:
1 edited

Legend:

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

    r2084 r2089  
    1 /* $Id: win32wbase.cpp,v 1.111 1999-12-16 00:11:46 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.112 1999-12-16 00:47:21 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    786786 ULONG rc;
    787787 Win32BaseWindow *child;
     788 HWND hwnd = getWindowHandle();
    788789
    789790    if (isSubclassedOS2Wnd) OSLibWinSubclassWindow(OS2Hwnd,pOldWndProc);
     
    805806    }
    806807    SendInternalMessageA(WM_DESTROY, 0, 0);
     808    if(::IsWindow(hwnd) == FALSE) {
     809        //object already destroyed, so return immediately
     810        return 1;
     811    }
    807812    SendInternalMessageA(WM_NCDESTROY, 0, 0);
    808813
Note: See TracChangeset for help on using the changeset viewer.