Changeset 2515 for trunk/src


Ignore:
Timestamp:
Jan 25, 2000, 9:39:41 PM (26 years ago)
Author:
sandervl
Message:

check wnd pointer in ReleaseDC

File:
1 edited

Legend:

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

    r2469 r2515  
    1 /* $Id: dc.cpp,v 1.35 2000-01-18 20:10:33 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.36 2000-01-25 20:39:41 sandervl Exp $ */
    22
    33/*
     
    828828   if (hwnd)
    829829   {
    830       Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
    831       //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     830        Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
     831        if(wnd == NULL) {
     832                dprintf(("ERROR: ReleaseDC %x %x failed", hwnd, hdc));
     833                return 0;
     834        }
     835        //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
    832836//      isOwnDC = wnd->isOwnDC() && wnd->getOwnDC();
    833       isOwnDC = wnd->isOwnDC() && (wnd->getOwnDC() == hdc);
     837        isOwnDC = wnd->isOwnDC() && (wnd->getOwnDC() == hdc);
    834838   }
    835839   if (isOwnDC)
Note: See TracChangeset for help on using the changeset viewer.