Ignore:
Timestamp:
Mar 28, 2002, 12:26:00 PM (23 years ago)
Author:
sandervl
Message:

Gracefully handle WM_QUIT message sent by window list

File:
1 edited

Legend:

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

    r8016 r8129  
    1 /* $Id: oslibmsg.cpp,v 1.53 2002-02-26 11:12:25 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.54 2002-03-28 11:25:59 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    323323                if (os2msg.msg == WM_TIMER)
    324324                    eaten = TIMER_HandleTimer(&os2msg);
     325                if (os2msg.msg == WM_QUIT && ((ULONG)os2msg.mp2 != 0) ) {
     326                    // Don't return FALSE when the window list sends us
     327                    // a WM_QUIT message, improper killing can lead to
     328                    // application crashes.
     329                    // In the WM_QUIT handler in pmwindow we send a WM_CLOSE
     330                    // in this case. When the app calls PostQuitMessage (mp2 == 0),
     331                    // then we handle it the normal way
     332                    rc = 1;
     333                }
    325334        } while (eaten);
    326335  }
Note: See TracChangeset for help on using the changeset viewer.