Ignore:
Timestamp:
Nov 13, 2001, 4:42:19 PM (24 years ago)
Author:
sandervl
Message:

refuse DeleteObject for DEFAULT_GUI_FONT handle

File:
1 edited

Legend:

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

    r6760 r7330  
    1 /* $Id: objhandle.cpp,v 1.18 2001-09-19 15:38:42 sandervl Exp $ */
     1/* $Id: objhandle.cpp,v 1.19 2001-11-13 15:42:06 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    2525#include "region.h"
    2626#include <unicode.h>
     27#include "font.h"
    2728
    2829#define DBG_LOCALLOG    DBG_objhandle
     
    372373                break;
    373374
     375        case OBJ_FONT:
     376            if(IsSystemFont(hObj))
     377            {
     378                SetLastError(ERROR_SUCCESS);
     379                return TRUE;
     380            }
     381            else
     382                break;
     383           
    374384        // add more system-type objects as required ...
    375385    }
Note: See TracChangeset for help on using the changeset viewer.