Author: dgorbachev
Date: Mon Oct 3 20:57:38 2011
New Revision: 53978
URL:
http://svn.reactos.org/svn/reactos?rev=53978&view=rev
Log:
[NTOSKRNL]
- Do not access an object after destruction.
- Remove the remaining mentions of a function which Sir Richard defeated a year ago.
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
trunk/reactos/ntoskrnl/ob/obhandle.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Mon Oct 3 20:57:38 2011
@@ -13,8 +13,6 @@
#include <ntoskrnl.h>
#define NDEBUG
#include <debug.h>
-
-VOID MmPrintMemoryStatistic(VOID);
FAST_MUTEX ExpEnvironmentLock;
ERESOURCE ExpFirmwareTableResource;
@@ -1297,10 +1295,6 @@
TheIdleProcess->Pcb.KernelTime,
MiFreeSwapPages,
MiUsedSwapPages);
-
-#ifndef NDEBUG
- MmPrintMemoryStatistic();
-#endif
*Spi = MiMemoryConsumers[MC_USER].PagesUsed;
Modified: trunk/reactos/ntoskrnl/ob/obhandle.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obhandle.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] Mon Oct 3 20:57:38 2011
@@ -753,12 +753,10 @@
/* Return to caller */
OBTRACE(OB_HANDLE_DEBUG,
- "%s - Closed handle: %lx for %p. HC PC %lx %lx\n",
+ "%s - Closed handle: %lx for %p.\n",
__FUNCTION__,
Handle,
- Body,
- ObjectHeader->HandleCount,
- ObjectHeader->PointerCount);
+ Body);
return STATUS_SUCCESS;
}