Changeset 6620 for trunk/src


Ignore:
Timestamp:
Sep 1, 2001, 2:47:13 PM (24 years ago)
Author:
sandervl
Message:

* empty log message *

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibmsg.cpp

    r6614 r6620  
    1 /* $Id: oslibmsg.cpp,v 1.42 2001-08-31 19:55:41 phaller Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.43 2001-09-01 12:41:42 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    3939
    4040
    41 // PH 2001-08-24 It seems a failure to post a message
    42 // kills Opera here and there.
    43 #define VERIFY_SHARED_HEAP 1
    44 
    4541
    4642typedef BOOL (EXPENTRY FNTRANS)(MSG *, QMSG *);
     
    468464 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));
    469465 
    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() ));
    475470   
    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    }
    480475 
    481476    packet->wParam   = wParam;
     
    497492 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));
    498493 
    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() ));
    504498   
    505     // PH: we can provide a correct returncode
    506     return FALSE;
    507   }
    508 #endif
     499        // PH: we can provide a correct returncode
     500        DebugInt3();   
     501        return FALSE;
     502    }
    509503    packet->wParam   = wParam;
    510504    packet->lParam   = lParam;
     
    538532 BOOL ret;
    539533 
    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    }
    545543   
    546     // PH: we can provide a correct returncode
    547     return FALSE;
    548   }
    549 #endif
    550  
    551  
    552544    if(teb == NULL) {
    553545        dprintf(("OSLibPostThreadMessage: thread %x not found!", threadid));
  • trunk/src/user32/user32.cpp

    r6617 r6620  
    1 /* $Id: user32.cpp,v 1.113 2001-08-31 20:23:44 phaller Exp $ */
     1/* $Id: user32.cpp,v 1.114 2001-09-01 12:41:42 sandervl Exp $ */
    22
    33/*
     
    11341134int WIN32API FillRect(HDC hDC, const RECT * lprc, HBRUSH hbr)
    11351135{
    1136     //SvL: brush 0 means currently selected brush (verified in NT4)
     1136    //SvL: brush 0 means current selected brush (verified in NT4)
    11371137    if(hbr == 0) {
    11381138        hbr = GetCurrentObject(hDC, OBJ_BRUSH);
  • trunk/src/user32/win32class.cpp

    r6612 r6620  
    1 /* $Id: win32class.cpp,v 1.27 2001-08-31 19:45:50 phaller Exp $ */
     1/* $Id: win32class.cpp,v 1.28 2001-09-01 12:43:51 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    571571            SetLastError(ERROR_CLASS_HAS_WINDOWS);
    572572            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        }   
    579574        wndclass->markDeleted();
    580575        RELEASE_CLASSOBJ(wndclass);
Note: See TracChangeset for help on using the changeset viewer.