Changeset 4223 for trunk/src/gdi32/objhandle.cpp
- Timestamp:
- Sep 8, 2000, 8:06:33 PM (25 years ago)
- 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 phallerExp $ */1 /* $Id: objhandle.cpp,v 1.4 2000-09-08 18:06:32 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Handle Management Code for OS/2 … … 13 13 * 14 14 */ 15 16 /*****************************************************************************17 * Includes *18 *****************************************************************************/19 20 #include <odin.h>21 #include <odinwrap.h>22 #include <os2sel.h>23 24 15 25 16 #include <os2win.h> … … 33 24 34 25 //****************************************************************************** 35 36 /*****************************************************************************37 * Defines *38 *****************************************************************************/39 40 ODINDEBUGCHANNEL(GDI32-REGION)41 42 26 43 27 static ULONG objHandleTable[MAX_OBJECT_HANDLES] = {0}; … … 218 202 //****************************************************************************** 219 203 //****************************************************************************** 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; 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; 229 212 } 230 213 DIBSection::deleteSection((DWORD)hObj);
Note:
See TracChangeset
for help on using the changeset viewer.