From 91a68570e9b373f1eae77268f5c1d634a14e1ebd Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld Date: Tue, 16 Jan 2024 18:01:46 +1100 Subject: [PATCH] [balloon] clean up pre-Win10 code (kernel part). Signed-off-by: Vadim Rozenfeld --- Balloon/sys/Device.c | 4 ---- Balloon/sys/balloon.c | 5 ----- 2 files changed, 9 deletions(-) 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) {