mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- 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:
parent
2a28b8de6b
commit
1d020c54d9
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue