https://git.reactos.org/?p=reactos.git;a=commitdiff;h=23e5d3fe251213bb5aeb7cac0637ad2b3864208e

commit 23e5d3fe251213bb5aeb7cac0637ad2b3864208e
Author:     Adam Słaboń <[email protected]>
AuthorDate: Wed Oct 26 02:15:16 2022 +0200
Commit:     GitHub <[email protected]>
CommitDate: Wed Oct 26 02:15:16 2022 +0200

    [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;

Reply via email to