Changeset 10038 for trunk/src


Ignore:
Timestamp:
Apr 24, 2003, 7:20:42 PM (22 years ago)
Author:
sandervl
Message:

KSO: Fake window init bugfixes

File:
1 edited

Legend:

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

    r10033 r10038  
    1 /* $Id: win32wfake.cpp,v 1.4 2003-04-24 13:59:15 sandervl Exp $ */
     1/* $Id: win32wfake.cpp,v 1.5 2003-04-24 17:20:42 sandervl Exp $ */
    22/*
    33 * Win32 Fake Window Class for OS/2
     
    241241Win32FakeWindow *Win32FakeWindow::GetWindowFromOS2Handle(HWND hwndOS2)
    242242{
    243     if (fInited)    init();
     243    if (!fInited)    init();
    244244
    245245    HWND hwnd = (HWND)OSLibQueryProperty(hwndOS2, szPropOdinHandle);
     
    274274    HMODULE     hmod;
    275275    ULONG       iObj, offObj;
    276     USHORT      GetFS();
     276    USHORT      sel = GetFS();
     277
    277278    int rc = DosQueryModFromEIP(&hmod, &iObj, sizeof(szModName), &szModName[0], &offObj, (ULONG)Win32FakeWindow::init);
    278     SetFS(rc);
     279    SetFS(sel);
     280
    279281    if (rc)
    280282    {
Note: See TracChangeset for help on using the changeset viewer.