[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.
This commit is contained in:
Adam Słaboń 2022-10-26 02:15:16 +02:00 committed by GitHub
parent e774423689
commit 23e5d3fe25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4739,7 +4739,7 @@ MmPurgeSegment(
if (!Segment)
{
/* Nothing to purge */
return STATUS_SUCCESS;
return TRUE;
}
PurgeStart.QuadPart = Offset ? Offset->QuadPart : 0LL;