- Minor cleanup.

See issue #3054 for more details.

svn path=/trunk/; revision=32302
This commit is contained in:
Aleksey Bragin 2008-02-11 17:45:56 +00:00
parent be80dacf70
commit f754465df3
2 changed files with 1 additions and 8 deletions

View file

@ -542,10 +542,6 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
* PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE, PAGE_GUARD,
* PAGE_NOACCESS
* RETURNS: Status
* NOTES: Must run at IRQL PASSIVE_LEVEL? (or is APC_LEVEL cool too?)
* MSDN states that ZwAllocateVirtualMemory IRQL must be PASSIVE_LEVEL,
* but why wouldn't APC_LEVEL be valid (or is that only for the Zw* version
* and Nt* can indeed run at APC_LEVEL?)
*/
{
PEPROCESS Process;
@ -561,10 +557,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
PHYSICAL_ADDRESS BoundaryAddressMultiple;
KPROCESSOR_MODE PreviousMode;
// TMN: Someone Pick one of these. Until it's clear which
// level is allowed, I play it safe and check for <= APC_LEVEL
PAGED_CODE();
// ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);
DPRINT("NtAllocateVirtualMemory(*UBaseAddress %x, "
"ZeroBits %d, *URegionSize %x, AllocationType %x, Protect %x)\n",

View file

@ -636,7 +636,7 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
szDest = Process->ImageFileName;
lnFName = min(lnFName, sizeof(Process->ImageFileName) - 1);
while (lnFName--) *szDest++ = (UCHAR)*szSrc++;
*szDest = UNICODE_NULL;
*szDest = ANSI_NULL;
/* Check if caller wants an audit name */
if (AuditName)