diff --git a/Balloon/sys/Device.c b/Balloon/sys/Device.c index a4596e385..7cd89bf63 100755 --- a/Balloon/sys/Device.c +++ b/Balloon/sys/Device.c @@ -159,11 +159,7 @@ BalloonDeviceAdd( &devCtx->LookAsideList, NULL, NULL, -#if !defined(NTDDI_WIN8) || (NTDDI_VERSION < NTDDI_WIN8) - 0, -#else POOL_NX_ALLOCATION, -#endif sizeof(PAGE_LIST_ENTRY), BALLOON_MGMT_POOL_TAG, 0 diff --git a/Balloon/sys/balloon.c b/Balloon/sys/balloon.c index 36ed50cdf..07928b630 100755 --- a/Balloon/sys/balloon.c +++ b/Balloon/sys/balloon.c @@ -168,13 +168,8 @@ BalloonFill( HighAddress.QuadPart = (ULONGLONG)-1; SkipBytes.QuadPart = 0; -#if (NTDDI_VERSION < NTDDI_WS03SP1) - pPageMdl = MmAllocatePagesForMdl(LowAddress, HighAddress, SkipBytes, - num * PAGE_SIZE); -#else pPageMdl = MmAllocatePagesForMdlEx(LowAddress, HighAddress, SkipBytes, num * PAGE_SIZE, MmNonCached, MM_DONT_ZERO_ALLOCATION); -#endif if (pPageMdl == NULL) {