mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 01:08:30 +00:00
[NTOSKRNL]
* Fix MSVC build. svn path=/trunk/; revision=55383
This commit is contained in:
parent
75c818eefb
commit
46ba8b17cc
1 changed files with 1 additions and 1 deletions
|
@ -556,6 +556,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
KAPC_STATE ApcState;
|
KAPC_STATE ApcState;
|
||||||
ULONG ProtectionMask;
|
ULONG ProtectionMask;
|
||||||
BOOLEAN Attached = FALSE;
|
BOOLEAN Attached = FALSE;
|
||||||
|
ULONG_PTR EndingAddress;
|
||||||
BoundaryAddressMultiple.QuadPart = 0;
|
BoundaryAddressMultiple.QuadPart = 0;
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
@ -876,7 +877,6 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
|
|
||||||
MemoryAreaLength = (ULONG_PTR)MemoryArea->EndingAddress -
|
MemoryAreaLength = (ULONG_PTR)MemoryArea->EndingAddress -
|
||||||
(ULONG_PTR)MemoryArea->StartingAddress;
|
(ULONG_PTR)MemoryArea->StartingAddress;
|
||||||
ULONG_PTR EndingAddress;
|
|
||||||
EndingAddress = ((ULONG_PTR)MemoryArea->StartingAddress + RegionSize - 1) | (PAGE_SIZE - 1);
|
EndingAddress = ((ULONG_PTR)MemoryArea->StartingAddress + RegionSize - 1) | (PAGE_SIZE - 1);
|
||||||
RegionSize = (ULONG_PTR)EndingAddress - (ULONG_PTR)MemoryArea->StartingAddress + 1;
|
RegionSize = (ULONG_PTR)EndingAddress - (ULONG_PTR)MemoryArea->StartingAddress + 1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue