- Ugly hack about corrupted KernelData pointer, which is being accessed. Hacks around bugs like bug 2954.

See issue #2954 for more details.

svn path=/trunk/; revision=33601
This commit is contained in:
Aleksey Bragin 2008-05-19 20:27:48 +00:00
parent 2a28b8de6b
commit 1d020c54d9

View file

@ -720,6 +720,16 @@ LockHandle:
{
DPRINT1("Attempted to free global gdi handle 0x%x, caller needs to get ownership first!!!\n", hObj);
DPRINT1("Type = 0x%lx, KernelData = 0x%p, ProcessId = 0x%p\n", Entry->Type, Entry->KernelData, Entry->ProcessId);
/* HACK: Ugly and nasty */
if ((ULONG_PTR)Entry->KernelData < 0x1000)
{
/* It's a memory-corruption bug (probably?),
overcome it by just saying "yes, object destroyed" */
DPRINT1("Bad kerneldata!!! Blame Win32k developers!\n");
return TRUE;
}
}
else
{