Ignore:
Timestamp:
Jul 24, 1999, 2:39:53 PM (26 years ago)
Author:
sandervl
Message:

Some bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32wnd.cpp

    r345 r383  
    1 /* $Id: win32wnd.cpp,v 1.18 1999-07-20 15:46:54 sandervl Exp $ */
     1/* $Id: win32wnd.cpp,v 1.19 1999-07-24 12:39:53 sandervl Exp $ */
    22/*
    33 * Win32 Window Code for OS/2
     
    110110Win32Window::~Win32Window()
    111111{
     112  OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0);
     113  OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, 0);
     114
    112115  if(Win32Hwnd)
    113         HMHandleFree(Win32Hwnd);
     116        HMHandleFree(Win32Hwnd & 0xFFFF);
    114117  if(windowName)
    115118        free(windowName);
     
    394397  //Set icon from class
    395398  if(windowClass->getIcon())
    396         SetIcon(windowClass->getIcon());
     399    SetIcon(windowClass->getIcon());
    397400
    398401  /* Send the WM_CREATE message
     
    423426                HOOK_CallHooks16( WH_SHELL, HSHELL_WINDOWCREATED, hwnd, 0 );
    424427#endif
    425         SetLastError(0);
     428    SetLastError(0);
    426429        return TRUE;
    427430        }
     
    656659ULONG Win32Window::MsgClose()
    657660{
    658   return SendInternalMessageA(WM_CLOSE, 0, 0);
     661  if(SendInternalMessageA(WM_CLOSE, 0, 0) == 0) {
     662        return 0; //app handles this message
     663  }
     664  delete this;
     665  return 1;
    659666}
    660667//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.