mirror of
https://github.com/reactos/reactos.git
synced 2024-12-01 07:23:33 +08:00
[KMTEST:NTOS_CC] Fix buffer size calculation
This commit is contained in:
parent
fa47d6f852
commit
a46ee7dafe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user