{
hobj = NtGdiGetStockObject(fnObject);
- if (!GdiIsHandleValid(hobj))
+ if (!GdiValidateHandle(hobj))
{
return NULL;
}
{
DWORD Ret = 0;
- if (GdiIsHandleValid(h))
+ if (GdiValidateHandle(h))
{
LONG Type = GDI_HANDLE_GET_TYPE(h);
switch(Type)
/* Handle error */
if (cbResult == 0)
{
- if (!GdiIsHandleValid(hGdiObj))
+ if (!GdiValidateHandle(hGdiObj))
{
if ((dwType == GDI_OBJECT_TYPE_PEN) ||
(dwType == GDI_OBJECT_TYPE_EXTPEN) ||
{
/* Check if the handle is valid (FIXME: we need some special
sauce for the stock object flag) */
- if (!GdiIsHandleValid(hObject))
+ if (!GdiValidateHandle(hObject))
return FALSE;
/* Check if this is a stock object */