PCURICON_OBJECT pIcon = NULL;
HICON hIcon;
- //FIXME: Some callers use this function as if it returns a boolean saying "this window has an icon".
- //FIXME: Hence we must return a pointer with no reference count.
- //FIXME: This is bad and we should feel bad.
- //FIXME: Stop whining over wine code.
-
hIcon = UserGetProp(pWnd, gpsi->atomIconSmProp, TRUE);
if (!hIcon) hIcon = UserGetProp(pWnd, gpsi->atomIconProp, TRUE);
}
if (hIcon)
{
- pIcon = UserGetCurIconObject(hIcon);
- if (pIcon)
- {
- UserDereferenceObject(pIcon);
- }
+ pIcon = (PCURICON_OBJECT)UserGetObjectNoErr(gHandleTable,
+ hIcon,
+ TYPE_CURSOR);
}
return pIcon;
}