From 9b74e5ed4ff49d162b8416d5e365857754299538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Fri, 23 Oct 2020 11:30:42 +0200 Subject: [PATCH] [NTOSKRNL] Do not compile unused code --- ntoskrnl/cache/section/data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntoskrnl/cache/section/data.c b/ntoskrnl/cache/section/data.c index 1fb0fc20c56..b7649dd1f62 100644 --- a/ntoskrnl/cache/section/data.c +++ b/ntoskrnl/cache/section/data.c @@ -303,6 +303,7 @@ MmFinalizeSegment(PMM_SECTION_SEGMENT Segment) ExFreePoolWithTag(Segment, TAG_MM_SECTION_SEGMENT); } +#ifdef NEWCC NTSTATUS NTAPI MmCreateCacheSection(PROS_SECTION_OBJECT *SectionObject, @@ -533,6 +534,7 @@ MmCreateCacheSection(PROS_SECTION_OBJECT *SectionObject, *SectionObject = Section; return STATUS_SUCCESS; } +#endif NTSTATUS NTAPI