diff --git a/badmemory/badmemory.c b/badmemory/badmemory.c index 091d13e..b0e6eca 100644 --- a/badmemory/badmemory.c +++ b/badmemory/badmemory.c @@ -111,7 +111,7 @@ DriverEntry( Boundary.QuadPart = 0; PVOID BadAddr = MmAllocateContiguousMemorySpecifyCache( - UpperBound.QuadPart - LowerBound.QuadPart, + (SIZE_T)(UpperBound.QuadPart - LowerBound.QuadPart), LowerBound, UpperBound, Boundary,