- Timestamp:
- Sep 9, 2009, 7:08:31 PM (16 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsgtranslate.cpp
r21308 r21341 221 221 winMsg->lParam = packet->lParam; 222 222 if (fMsgRemoved == MSG_REMOVE) 223 OSLibCleanupPacket(teb, packet, winMsg); 223 { 224 /* avoid double free */ 225 if (os2Msg->mp2) 226 { 227 OSLibCleanupPacket(teb, packet, winMsg); 228 os2Msg->mp2 = NULL; 229 } 230 #ifdef DEBUG 231 else 232 dprintf(("Trying to free NULL in WinMsgTranslate")); 233 #endif 234 } 224 235 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 225 236 return TRUE; -
trunk/src/user32/pmwindow.cpp
r21340 r21341 592 592 593 593 /* sometimes MSG_REMOVE here caused to double free of the message */ 594 if(OS2ToWinMsgTranslate((PVOID)teb, &qmsg, &winMsg, FALSE, /*MSG_REMOVE*/0) == FALSE)594 if(OS2ToWinMsgTranslate((PVOID)teb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE) 595 595 {//message was not translated 596 596 memset(&winMsg, 0, sizeof(MSG));
Note:
See TracChangeset
for help on using the changeset viewer.