Author: tkreuzer
Date: Sat Aug 21 22:00:50 2010
New Revision: 48582
URL:
http://svn.reactos.org/svn/reactos?rev=48582&view=rev
Log:
[WIN32K]
Use the object type index, not the shifted full object type to decide what to do with an
object in NtGdiDeleteObjectApp. Fixes leaking derived types such as pens.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dclife.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dclife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] Sat Aug 21
22:00:50 2010
@@ -773,7 +773,7 @@
if (IsObjectDead((HGDIOBJ)DCHandle)) return TRUE;
- ObjType = GDI_HANDLE_GET_TYPE(DCHandle) >> GDI_ENTRY_UPPER_SHIFT;
+ ObjType = GDI_OBJECT_GET_TYPE_INDEX((ULONG_PTR)DCHandle);
if (GreGetObjectOwner( DCHandle, ObjType))
{