Changeset 4209 for trunk/src


Ignore:
Timestamp:
Sep 8, 2000, 12:14:51 AM (25 years ago)
Author:
phaller
Message:

Fixed FS: problem

File:
1 edited

Legend:

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

    r4034 r4209  
    1 /* $Id: objhandle.cpp,v 1.2 2000-08-18 18:14:57 sandervl Exp $ */
     1/* $Id: objhandle.cpp,v 1.3 2000-09-07 22:14:51 phaller 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
    1524
    1625#include <os2win.h>
     
    2433
    2534//******************************************************************************
     35
     36/*****************************************************************************
     37 * Defines                                                                   *
     38 *****************************************************************************/
     39
     40ODINDEBUGCHANNEL(GDI32-REGION)
     41
    2642
    2743static ULONG  objHandleTable[MAX_OBJECT_HANDLES] = {0};
     
    202218//******************************************************************************
    203219//******************************************************************************
    204 BOOL 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;
     220ODINFUNCTION1(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;
    212229  }
    213230  DIBSection::deleteSection((DWORD)hObj);
Note: See TracChangeset for help on using the changeset viewer.