- Timestamp:
- Sep 8, 2000, 12:14:51 AM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: objhandle.cpp,v 1.3 2000-09-07 22:14:51 phaller 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 15 24 16 25 #include <os2win.h> … … 24 33 25 34 //****************************************************************************** 35 36 /***************************************************************************** 37 * Defines * 38 *****************************************************************************/ 39 40 ODINDEBUGCHANNEL(GDI32-REGION) 41 26 42 27 43 static ULONG objHandleTable[MAX_OBJECT_HANDLES] = {0}; … … 202 218 //****************************************************************************** 203 219 //****************************************************************************** 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; 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; 212 229 } 213 230 DIBSection::deleteSection((DWORD)hObj);
Note:
See TracChangeset
for help on using the changeset viewer.