From 23e5d3fe251213bb5aeb7cac0637ad2b3864208e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20S=C5=82abo=C5=84?= Date: Wed, 26 Oct 2022 02:15:16 +0200 Subject: [PATCH] [NTOS:MM] MmPurgeSegment: Fix wrong return value (#4801) Return TRUE instead of NTSTATUS code which has a value of FALSE and may confuse caller. Fixes sporadic 0x7B bugcheck when booting from corrupted NTFS volume using WinXP ntfs.sys. --- ntoskrnl/mm/section.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c index 0ab7da4a648..1859d5ea6f1 100644 --- a/ntoskrnl/mm/section.c +++ b/ntoskrnl/mm/section.c @@ -4739,7 +4739,7 @@ MmPurgeSegment( if (!Segment) { /* Nothing to purge */ - return STATUS_SUCCESS; + return TRUE; } PurgeStart.QuadPart = Offset ? Offset->QuadPart : 0LL;