mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
[WIN32SS] Use GDI_HANDLE_* macros for readability (#4797)
This commit is contained in:
parent
23e5d3fe25
commit
dd75ae8eca
3 changed files with 4 additions and 4 deletions
|
@ -961,7 +961,7 @@ IntSetPaletteEntries(
|
|||
PPALETTE palGDI;
|
||||
ULONG numEntries;
|
||||
|
||||
if ((UINT_PTR)hpal & GDI_HANDLE_STOCK_MASK)
|
||||
if (GDI_HANDLE_IS_STOCKOBJ(hpal))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1245,7 +1245,7 @@ NtGdiUnrealizeObject(HGDIOBJ hgdiobj)
|
|||
PPALETTE palGDI;
|
||||
|
||||
if ( !hgdiobj ||
|
||||
((UINT_PTR)hgdiobj & GDI_HANDLE_STOCK_MASK) ||
|
||||
GDI_HANDLE_IS_STOCKOBJ(hgdiobj) ||
|
||||
!GDI_HANDLE_IS_TYPE(hgdiobj, GDI_OBJECT_TYPE_PALETTE) )
|
||||
return Ret;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue