mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 11:00:55 +00:00
- 64-bit fixes (ULONG -> SIZE_T)
svn path=/trunk/; revision=36911
This commit is contained in:
parent
cbfc164757
commit
63516132ef
|
@ -76,7 +76,7 @@ EngAllocUserMem(SIZE_T cj, ULONG Tag)
|
|||
{
|
||||
PVOID NewMem = NULL;
|
||||
NTSTATUS Status;
|
||||
ULONG MemSize = sizeof(USERMEMHEADER) + cj;
|
||||
SIZE_T MemSize = sizeof(USERMEMHEADER) + cj;
|
||||
PUSERMEMHEADER Header;
|
||||
|
||||
Status = ZwAllocateVirtualMemory(NtCurrentProcess(), &NewMem, 0, &MemSize, MEM_COMMIT, PAGE_READWRITE);
|
||||
|
@ -100,7 +100,7 @@ VOID STDCALL
|
|||
EngFreeUserMem(PVOID pv)
|
||||
{
|
||||
PUSERMEMHEADER Header = ((PUSERMEMHEADER) pv) - 1;
|
||||
ULONG MemSize = sizeof(USERMEMHEADER) + Header->MemSize;
|
||||
SIZE_T MemSize = sizeof(USERMEMHEADER) + Header->MemSize;
|
||||
|
||||
ZwFreeVirtualMemory(NtCurrentProcess(), (PVOID *) &Header, &MemSize, MEM_RELEASE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue