Ignore:
Timestamp:
Jun 14, 2001, 4:49:19 PM (24 years ago)
Author:
sandervl
Message:

temporary workaround added for opera crash

File:
1 edited

Legend:

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

    r6008 r6012  
    1 /* $Id: win32wbase.cpp,v 1.269 2001-06-14 11:30:56 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.270 2001-06-14 14:49:17 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    29942994HWND Win32BaseWindow::FindWindowById(int id)
    29952995{
     2996    HWND hwnd;
     2997
    29962998    lock();
    29972999    for (Win32BaseWindow *child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild())
     
    29993001        if (child->getWindowId() == id)
    30003002        {
     3003            hwnd = child->getWindowHandle();
    30013004            unlock();
    3002             return child->getWindowHandle();
     3005            return hwnd;
    30033006        }
    30043007    }
     
    37023705 Win32BaseWindow *window;
    37033706
    3704     lock(&critsect);
     3707////    lock(&critsect);
    37053708    if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) {
    37063709         if(window) {
     
    37083711             window->addRef();
    37093712         }
    3710          unlock(&critsect);
     3713////         unlock(&critsect);
    37113714         return window;
    37123715    }
    3713     unlock(&critsect);
     3716////    unlock(&critsect);
    37143717//    dprintf2(("Win32BaseWindow::GetWindowFromHandle: not a win32 window %x", hwnd));
    37153718    return NULL;
Note: See TracChangeset for help on using the changeset viewer.