Author: sginsberg
Date: Thu Oct 23 10:56:27 2008
New Revision: 36911
URL:
http://svn.reactos.org/svn/reactos?rev=36911&view=rev
Log:
- 64-bit fixes (ULONG -> SIZE_T)
Modified:
trunk/reactos/subsystems/win32/win32k/eng/mem.c
Modified: trunk/reactos/subsystems/win32/win32k/eng/mem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/en…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/eng/mem.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/eng/mem.c [iso-8859-1] Thu Oct 23 10:56:27 2008
@@ -76,7 +76,7 @@
{
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 @@
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);
}