[KMTEST:NTOS_CC] Fix buffer size calculation

This commit is contained in:
Jérôme Gardou 2021-02-01 10:42:37 +01:00
parent fa47d6f852
commit a46ee7dafe

View File

@ -467,7 +467,7 @@ TestIrpHandler(
if (Length > (Fcb->Header.FileSize.QuadPart - Offset.QuadPart))
{
RtlFillMemory(Buffer, Length - Fcb->Header.FileSize.QuadPart, 0xBD);
RtlFillMemory(Buffer, Length - (Fcb->Header.FileSize.QuadPart - Offset.QuadPart), 0xBD);
}
}
else