From 0ff3e589c999d78d702caac419bf95cb1aa1af5f Mon Sep 17 00:00:00 2001 From: Syahmi Azhar Date: Fri, 15 Jul 2016 14:41:18 +0800 Subject: [PATCH] Fixed type conversion issue. --- badmemory/badmemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,