- Timestamp:
- Dec 30, 2000, 2:28:32 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/objhandle.cpp
r4769 r4857 1 /* $Id: objhandle.cpp,v 1. 9 2000-12-09 15:00:35sandervl Exp $ */1 /* $Id: objhandle.cpp,v 1.10 2000-12-30 13:28:32 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Handle Management Code for OS/2 … … 297 297 } 298 298 //****************************************************************************** 299 //TODO: System objects can't be deleted (TODO: any others?? (fonts?))!!!!) 299 300 //****************************************************************************** 300 301 BOOL WIN32API DeleteObject(HANDLE hObj) 301 302 { 303 DWORD type; 304 302 305 dprintf(("GDI32: DeleteObject %x", hObj)); 306 307 //System objects can't be deleted (TODO: any others?? (fonts?))!!!!) 308 type = GetObjectType(hObj); 309 if(type == OBJ_PEN && IsSystemPen(hObj)) { 310 SetLastError(ERROR_SUCCESS); 311 return TRUE; 312 } 313 if(type == OBJ_BRUSH && IsSystemBrush(hObj)) { 314 SetLastError(ERROR_SUCCESS); 315 return TRUE; 316 } 317 303 318 if(ObjGetHandleType(hObj) == GDIOBJ_REGION) { 304 319 OSLibDeleteRegion(ObjGetHandleData(hObj, GDIOBJ_REGION)); 305 320 ObjFreeHandle(hObj); 306 321 SetLastError(ERROR_SUCCESS); 307 return OBJ_REGION;322 return TRUE; 308 323 } 309 324 DIBSection::deleteSection((DWORD)hObj);
Note:
See TracChangeset
for help on using the changeset viewer.