Ignore:
Timestamp:
Feb 10, 2001, 11:31:31 AM (25 years ago)
Author:
sandervl
Message:

heap corruption bugfix

File:
1 edited

Legend:

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

    r5074 r5083  
    1 /* $Id: win32wbase.cpp,v 1.233 2001-02-09 18:30:25 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.234 2001-02-10 10:31:31 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    553553    }
    554554
    555 
    556555//SvL: This completely messes up MS Word 97 (no button bar, no menu)
    557556#if 0
     
    18891888{
    18901889 LRESULT rc;
     1890 HWND    hwnd = getWindowHandle();
    18911891 BOOL    fInternalMsgBackup = fInternalMsg;
    18921892
     
    19401940                break;
    19411941  }
     1942  if(!::IsWindow(hwnd)) {
     1943        //window might have been destroyed by now. (this pointer invalid)
     1944        //we must return immediately
     1945        //(MS Visual C++ install heap corruption)
     1946        //TODO: could happen in several places here!!!!
     1947        return rc;
     1948  }
    19421949  fInternalMsg = fInternalMsgBackup;
    19431950  return rc;
     
    19491956{
    19501957 LRESULT rc;
     1958 HWND    hwnd = getWindowHandle();
    19511959 BOOL    fInternalMsgBackup = fInternalMsg;
    19521960
     
    19871995                rc = CallWindowProcW(win32wndproc, getWindowHandle(), Msg, wParam, lParam);
    19881996                break;
     1997  }
     1998  if(!::IsWindow(hwnd)) {
     1999        //window might have been destroyed by now. (this pointer invalid)
     2000        //we must return immediately
     2001        //(MS Visual C++ install heap corruption)
     2002        //TODO: could happen in several places here!!!!
     2003        return rc;
    19892004  }
    19902005  fInternalMsg = fInternalMsgBackup;
Note: See TracChangeset for help on using the changeset viewer.