Ignore:
Timestamp:
Jul 15, 2002, 12:19:16 PM (23 years ago)
Author:
sandervl
Message:

handle management updates for GDI32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winicon.cpp

    r8533 r8872  
    1 /* $Id: winicon.cpp,v 1.34 2002-05-31 09:54:05 sandervl Exp $ */
     1/* $Id: winicon.cpp,v 1.35 2002-07-15 10:16:29 sandervl Exp $ */
    22/*
    33 * Win32 Icon Code for OS/2
     
    233233#ifdef __WIN32OS2__
    234234        HICON hIcon;
    235         if(ObjAllocateHandle(&hIcon, (DWORD)hObj, USEROBJ_CURSORICON) == FALSE) {
     235        if(ObjAllocateHandle(&hIcon, (DWORD)hObj, HNDL_CURSORICON) == FALSE) {
    236236            GlobalFree(hObj);
    237237            dprintf(("ERROR: CreateIconIndirect ObjAllocateHandle failed!!"));
     
    267267    CURSORICONINFO  *ciconinfo;
    268268
    269     hIcon = ObjGetHandleData(hIcon, USEROBJ_CURSORICON);
     269    hIcon = ObjQueryHandleData(hIcon, HNDL_CURSORICON);
    270270    if(hIcon == -1) {
    271271        dprintf(("ERROR: Invalid cursor/icon!"));
     
    289289
    290290#ifdef __WIN32OS2__
    291     hIcon = ObjGetHandleData(hIcon, USEROBJ_CURSORICON);
     291    hIcon = ObjQueryHandleData(hIcon, HNDL_CURSORICON);
    292292    if(hIcon == -1) {
    293293        dprintf(("ERROR: Invalid cursor/icon!"));
     
    426426
    427427#ifdef __WIN32OS2__
    428     hCursor = ObjGetHandleData(hCursor, USEROBJ_CURSORICON);
     428    hCursor = ObjQueryHandleData(hCursor, HNDL_CURSORICON);
    429429    if(hCursor == -1) {
    430430        dprintf(("ERROR: Invalid cursor/icon!"));
     
    566566#ifdef __WIN32OS2__
    567567    HICON hIcon;
    568     if(ObjAllocateHandle(&hIcon, (DWORD)handle, USEROBJ_CURSORICON) == FALSE) {
     568    if(ObjAllocateHandle(&hIcon, (DWORD)handle, HNDL_CURSORICON) == FALSE) {
    569569        GlobalFree(handle);
    570570        dprintf(("ERROR: CreateCursorIconIndirect ObjAllocateHandle failed!!"));
     
    628628
    629629            HICON hIcon;
    630             if(ObjAllocateHandle(&hIcon, (DWORD)hObj, USEROBJ_CURSORICON) == FALSE) {
     630            if(ObjAllocateHandle(&hIcon, (DWORD)hObj, HNDL_CURSORICON) == FALSE) {
    631631               GlobalUnlock( hObj );
    632632               GlobalFree(hObj);
     
    11711171    if(hObj) {
    11721172        HICON hIcon;
    1173         if(ObjAllocateHandle(&hIcon, (DWORD)hObj, USEROBJ_CURSORICON) == FALSE) {
     1173        if(ObjAllocateHandle(&hIcon, (DWORD)hObj, HNDL_CURSORICON) == FALSE) {
    11741174            GlobalFree(hObj);
    11751175            dprintf(("ERROR: CURSORICON_Load ObjAllocateHandle failed!!"));
     
    12031203
    12041204#ifdef __WIN32OS2__
    1205     HICON hIcon = ObjGetHandleData(handle, USEROBJ_CURSORICON);
     1205    HICON hIcon = ObjQueryHandleData(handle, HNDL_CURSORICON);
    12061206    if(hIcon == -1) {
    12071207        dprintf(("ERROR: Invalid cursor/icon!"));
     
    12341234    GlobalUnlock(hIcon);
    12351235    retv = GlobalFree( hIcon );
    1236     ObjFreeHandle(handle);
     1236    ObjDeleteHandle(handle, HNDL_CURSORICON);
    12371237
    12381238    return (flags & CID_RESOURCE)? retv : TRUE;
     
    12541254    HGLOBAL hNew;
    12551255
    1256     handle = ObjGetHandleData(handle, USEROBJ_CURSORICON);
     1256    handle = ObjQueryHandleData(handle, HNDL_CURSORICON);
    12571257    if(handle == -1) {
    12581258        dprintf(("ERROR: Invalid cursor/icon!"));
     
    12771277#ifdef __WIN32OS2__
    12781278    HICON hIcon;
    1279     if(ObjAllocateHandle(&hIcon, (DWORD)hNew, USEROBJ_CURSORICON) == FALSE) {
     1279    if(ObjAllocateHandle(&hIcon, (DWORD)hNew, HNDL_CURSORICON) == FALSE) {
    12801280        GlobalFree(hNew);
    12811281        dprintf(("ERROR: CURSORICON_Copy ObjAllocateHandle failed!!"));
     
    13171317
    13181318#ifdef __WIN32OS2__
    1319     HICON hIcon = ObjGetHandleData(Handle, USEROBJ_CURSORICON);
     1319    HICON hIcon = ObjQueryHandleData(Handle, HNDL_CURSORICON);
    13201320    if(hIcon == -1) {
    13211321        dprintf(("ERROR: Invalid cursor/icon!"));
Note: See TracChangeset for help on using the changeset viewer.