Changeset 22116


Ignore:
Timestamp:
Feb 9, 2016, 12:58:11 PM (10 years ago)
Author:
rousseau
Message:

Fixed missing exit-code in 'msg.wParam' from PostQuitMessage() [odin]

PostQuitMessage() is forwarded to OSLibWinPostQuitMessage(),
which posts a WM_QUIT message (PM-version) on the PM message-queue using
WinPostQueueMsg(). Function OS2ToWinMsgTranslate() translates the
WM_QUIT-pm to a WM_QUIT-win32 message, and this is where the 'wParam'
holding the PostQuitMessage() exit-code got lost.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/swt/src/user32/oslibmsgtranslate.cpp

    r21916 r22116  
    269269    case WM_QUIT:
    270270        winMsg->message = WINWM_QUIT;
     271        winMsg->wParam = (WPARAM) os2Msg->mp1;
    271272        if (fMsgRemoved && win32wnd && (ULONG)os2Msg->mp2 != 0) {
    272273            // mp2 != 0 -> sent by window list; be nice and close
Note: See TracChangeset for help on using the changeset viewer.