diff --git a/reactos/ntoskrnl/mm/mminit.c b/reactos/ntoskrnl/mm/mminit.c index 07f4ac6cb6b..bdd67eca134 100644 --- a/reactos/ntoskrnl/mm/mminit.c +++ b/reactos/ntoskrnl/mm/mminit.c @@ -73,6 +73,7 @@ VOID NTAPI MiShutdownMemoryManager(VOID) { +#if 0 ULONG PagesWritten; PETHREAD Thread; @@ -100,6 +101,7 @@ MiShutdownMemoryManager(VOID) There will be no other chance to do this later, since filesystems are going to be shut down. */ CcRosFlushDirtyPages(128, &PagesWritten); +#endif } VOID diff --git a/reactos/subsystems/win32/win32k/objects/gdiobj.c b/reactos/subsystems/win32/win32k/objects/gdiobj.c index 06bb44109e9..b54a954240b 100644 --- a/reactos/subsystems/win32/win32k/objects/gdiobj.c +++ b/reactos/subsystems/win32/win32k/objects/gdiobj.c @@ -1318,16 +1318,6 @@ LockHandle: { POBJ Object = Entry->KernelData; - /* HACK: Introduced very recently, probably by Timo's changes */ - 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 = Object->Tid; if (Object->cExclusiveLock == 0 || PrevThread == Thread) {