Ignore:
Timestamp:
Sep 8, 2000, 8:06:33 PM (25 years ago)
Author:
sandervl
Message:

Fixed FS bug in OSLibDeleteRegion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/objhandle.cpp

    r4209 r4223  
    1 /* $Id: objhandle.cpp,v 1.3 2000-09-07 22:14:51 phaller Exp $ */
     1/* $Id: objhandle.cpp,v 1.4 2000-09-08 18:06:32 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    1313 *
    1414 */
    15 
    16 /*****************************************************************************
    17  * Includes                                                                  *
    18  *****************************************************************************/
    19 
    20 #include <odin.h>
    21 #include <odinwrap.h>
    22 #include <os2sel.h>
    23 
    2415
    2516#include <os2win.h>
     
    3324
    3425//******************************************************************************
    35 
    36 /*****************************************************************************
    37  * Defines                                                                   *
    38  *****************************************************************************/
    39 
    40 ODINDEBUGCHANNEL(GDI32-REGION)
    41 
    4226
    4327static ULONG  objHandleTable[MAX_OBJECT_HANDLES] = {0};
     
    218202//******************************************************************************
    219203//******************************************************************************
    220 ODINFUNCTION1(BOOL, DeleteObject,
    221               HANDLE, hObj)
    222 {
    223   if(ObjGetHandleType(hObj) == GDIOBJ_REGION)
    224   {
    225     OSLibDeleteRegion(ObjGetHandleData(hObj));
    226     ObjFreeHandle(hObj);
    227     SetLastError(ERROR_SUCCESS);
    228     return OBJ_REGION;
     204BOOL WIN32API DeleteObject(HANDLE hObj)
     205{
     206  dprintf(("GDI32: DeleteObject %x", hObj));
     207  if(ObjGetHandleType(hObj) == GDIOBJ_REGION) {
     208        OSLibDeleteRegion(ObjGetHandleData(hObj));
     209        ObjFreeHandle(hObj);
     210        SetLastError(ERROR_SUCCESS);
     211        return OBJ_REGION;
    229212  }
    230213  DIBSection::deleteSection((DWORD)hObj);
Note: See TracChangeset for help on using the changeset viewer.