Changeset 2379 for trunk/src/user32/new/oslibmsg.cpp
- Timestamp:
- Jan 8, 2000, 6:08:56 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/oslibmsg.cpp
r2335 r2379 1 /* $Id: oslibmsg.cpp,v 1. 9 2000-01-05 21:25:03 cbratschiExp $ */1 /* $Id: oslibmsg.cpp,v 1.10 2000-01-08 17:08:55 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 151 151 APIRET rc; 152 152 153 rc = WinPostQueueMsg(NULLHANDLE, WM_QUIT, (MPARAM)nExitCode, 0);153 rc = WinPostQueueMsg(NULLHANDLE, WM_QUIT, MPFROMLONG(nExitCode), 0); 154 154 dprintf(("WinPostQueueMsg %d returned %d", nExitCode, rc)); 155 155 } … … 179 179 memcpy(&thdb->msg, msg, sizeof(MSG)); 180 180 } 181 return (LONG)WinDispatchMsg(thdb->hab, &os2msg); 181 if(os2msg.hwnd || os2msg.msg == WM_QUIT) { 182 return (LONG)WinDispatchMsg(thdb->hab, &os2msg); 183 } 184 //SvL: Don't dispatch messages sent by PostThreadMessage (correct??) 185 return 0; 186 182 187 } 183 188 else {//is this allowed? … … 225 230 while(rc == FALSE); 226 231 227 return rc;232 return (pMsg->message == WINWM_QUIT); 228 233 } 229 234 else … … 236 241 } while (eaten); 237 242 } 238 if(rc) { 239 OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode, MSG_REMOVE); 240 memcpy(MsgThreadPtr, &os2msg, sizeof(QMSG)); 241 } 243 OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode, MSG_REMOVE); 244 memcpy(MsgThreadPtr, &os2msg, sizeof(QMSG)); 242 245 return rc; 243 246 }
Note:
See TracChangeset
for help on using the changeset viewer.