[NTOSKRNL]

* Fix MSVC build.

svn path=/trunk/; revision=55383
This commit is contained in:
Amine Khaldi 2012-02-02 20:45:49 +00:00
parent 75c818eefb
commit 46ba8b17cc

View file

@ -556,6 +556,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
KAPC_STATE ApcState;
ULONG ProtectionMask;
BOOLEAN Attached = FALSE;
ULONG_PTR EndingAddress;
BoundaryAddressMultiple.QuadPart = 0;
PAGED_CODE();
@ -876,7 +877,6 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
MemoryAreaLength = (ULONG_PTR)MemoryArea->EndingAddress -
(ULONG_PTR)MemoryArea->StartingAddress;
ULONG_PTR EndingAddress;
EndingAddress = ((ULONG_PTR)MemoryArea->StartingAddress + RegionSize - 1) | (PAGE_SIZE - 1);
RegionSize = (ULONG_PTR)EndingAddress - (ULONG_PTR)MemoryArea->StartingAddress + 1;