Changeset 6620 for trunk/src/user32/oslibmsg.cpp
- Timestamp:
- Sep 1, 2001, 2:47:13 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r6614 r6620 1 /* $Id: oslibmsg.cpp,v 1.4 2 2001-08-31 19:55:41 phallerExp $ */1 /* $Id: oslibmsg.cpp,v 1.43 2001-09-01 12:41:42 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 39 39 40 40 41 // PH 2001-08-24 It seems a failure to post a message42 // kills Opera here and there.43 #define VERIFY_SHARED_HEAP 144 45 41 46 42 typedef BOOL (EXPENTRY FNTRANS)(MSG *, QMSG *); … … 468 464 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 469 465 470 #ifdef VERIFY_SHARED_HEAP 471 if (NULL == packet) 472 { 473 dprintf(("user32::oslibmsg::OSLibSendMessage - allocated packet structure is NULL, heapmin=%d\n", 474 _sheapmin() )); 466 if(NULL == packet) 467 { 468 dprintf(("user32::oslibmsg::OSLibSendMessage - allocated packet structure is NULL, heapmin=%d\n", 469 _sheapmin() )); 475 470 476 // PH: we cannot provide a correct returncode :(477 return 0;478 }479 #endif 471 // PH: we cannot provide a correct returncode :( 472 DebugInt3(); 473 return 0; 474 } 480 475 481 476 packet->wParam = wParam; … … 497 492 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 498 493 499 #ifdef VERIFY_SHARED_HEAP 500 if (NULL == packet) 501 { 502 dprintf(("user32::oslibmsg::OSLibPostMessage - allocated packet structure is NULL, heapmin=%d\n", 503 _sheapmin() )); 494 if (NULL == packet) 495 { 496 dprintf(("user32::oslibmsg::OSLibPostMessage - allocated packet structure is NULL, heapmin=%d\n", 497 _sheapmin() )); 504 498 505 // PH: we can provide a correct returncode506 return FALSE;507 }508 #endif 499 // PH: we can provide a correct returncode 500 DebugInt3(); 501 return FALSE; 502 } 509 503 packet->wParam = wParam; 510 504 packet->lParam = lParam; … … 538 532 BOOL ret; 539 533 540 #ifdef VERIFY_SHARED_HEAP 541 if (NULL == packet) 542 { 543 dprintf(("user32::oslibmsg::OSLibPostMessage - allocated packet structure is NULL, heapmin=%d\n", 544 _sheapmin() )); 534 if(NULL == packet) 535 { 536 dprintf(("user32::oslibmsg::OSLibPostMessage - allocated packet structure is NULL, heapmin=%d\n", 537 _sheapmin() )); 538 539 DebugInt3(); 540 // PH: we can provide a correct returncode 541 return FALSE; 542 } 545 543 546 // PH: we can provide a correct returncode547 return FALSE;548 }549 #endif550 551 552 544 if(teb == NULL) { 553 545 dprintf(("OSLibPostThreadMessage: thread %x not found!", threadid));
Note:
See TracChangeset
for help on using the changeset viewer.