[NTOSKRNL]

- Do not access an object after destruction.
- Remove the remaining mentions of a function which Sir Richard defeated a year ago.

svn path=/trunk/; revision=53978
This commit is contained in:
Dmitry Gorbachev 2011-10-03 20:57:38 +00:00
parent a1a833ca63
commit 05579fb1cd
2 changed files with 2 additions and 10 deletions

View file

@ -14,8 +14,6 @@
#define NDEBUG
#include <debug.h>
VOID MmPrintMemoryStatistic(VOID);
FAST_MUTEX ExpEnvironmentLock;
ERESOURCE ExpFirmwareTableResource;
LIST_ENTRY ExpFirmwareTableProviderListHead;
@ -1298,10 +1296,6 @@ QSI_DEF(SystemFullMemoryInformation)
MiFreeSwapPages,
MiUsedSwapPages);
#ifndef NDEBUG
MmPrintMemoryStatistic();
#endif
*Spi = MiMemoryConsumers[MC_USER].PagesUsed;
return STATUS_SUCCESS;

View file

@ -753,12 +753,10 @@ ObpCloseHandleTableEntry(IN PHANDLE_TABLE HandleTable,
/* 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;
}