From 968d02e55c9e3277f4f35c5285a4e7f49cc4bc76 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sun, 5 Feb 2017 22:03:27 +0000 Subject: [PATCH] [BOOTLIB]: Fix bug in MmPapFreePhysicalPages. svn path=/trunk/; revision=73719 --- reactos/boot/environ/lib/mm/pagealloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/boot/environ/lib/mm/pagealloc.c b/reactos/boot/environ/lib/mm/pagealloc.c index dd6f915333a..70138e29f03 100644 --- a/reactos/boot/environ/lib/mm/pagealloc.c +++ b/reactos/boot/environ/lib/mm/pagealloc.c @@ -712,7 +712,7 @@ MmPapFreePhysicalPages ( else if (!DontFree) { /* Caller wants memory to be freed -- should we zero it? */ - if (!(HasPageData) & + if (!(HasPageData) && (LibraryParameters.LibraryFlags & BL_LIBRARY_FLAG_ZERO_HEAP_ALLOCATIONS_ON_FREE)) {