Author: fireball Date: Fri Mar 7 18:13:02 2008 New Revision: 32603
URL: http://svn.reactos.org/svn/reactos?rev=3D32603&view=3Drev Log: - UGLY HACK dedicated to Timo Kreuzer: Please, fix this issue. Happens only= in 2nd stage during shutdown.
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win3= 2k/objects/gdiobj.c?rev=3D32603&r1=3D32602&r2=3D32603&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c (original) +++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c Fri Mar 7 18:13= :02 2008 @@ -1318,6 +1318,16 @@ { POBJ Object =3D Entry->KernelData; =
+ /* HACK: Introduced very recently, probably by Timo's chan= ges */ + if ((ULONG_PTR)Object < 0x80000000) + { + DPRINT1("KernelData is invalid (%p) for Entry %p!!!\n", + Object, Entry); + + /* Hopefully someone is going to solve this issue */ + return; + } + PrevThread =3D Object->Tid; if (Object->cExclusiveLock =3D=3D 0 || PrevThread =3D=3D T= hread) {