- Timestamp:
- Sep 1, 2001, 2:47:13 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 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)); -
trunk/src/user32/user32.cpp
r6617 r6620 1 /* $Id: user32.cpp,v 1.11 3 2001-08-31 20:23:44 phallerExp $ */1 /* $Id: user32.cpp,v 1.114 2001-09-01 12:41:42 sandervl Exp $ */ 2 2 3 3 /* … … 1134 1134 int WIN32API FillRect(HDC hDC, const RECT * lprc, HBRUSH hbr) 1135 1135 { 1136 //SvL: brush 0 means current lyselected brush (verified in NT4)1136 //SvL: brush 0 means current selected brush (verified in NT4) 1137 1137 if(hbr == 0) { 1138 1138 hbr = GetCurrentObject(hDC, OBJ_BRUSH); -
trunk/src/user32/win32class.cpp
r6612 r6620 1 /* $Id: win32class.cpp,v 1.2 7 2001-08-31 19:45:50 phallerExp $ */1 /* $Id: win32class.cpp,v 1.28 2001-09-01 12:43:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 571 571 SetLastError(ERROR_CLASS_HAS_WINDOWS); 572 572 return FALSE; 573 } 574 575 // 2001-08-31 PH 576 // Note: RELEASE_CLASSOBJ sets the pointer to NULL, 577 // and as delete verifies the object pointer to unequal NULL, 578 // the destrutor is NEVER called, the class atom is NEVER released. 573 } 579 574 wndclass->markDeleted(); 580 575 RELEASE_CLASSOBJ(wndclass);
Note:
See TracChangeset
for help on using the changeset viewer.