https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a46ee7dafe39defcecdf8…
commit a46ee7dafe39defcecdf812aed8d09cfab6f5e4e
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Mon Feb 1 10:42:37 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Tue Feb 2 10:15:19 2021 +0100
[KMTEST:NTOS_CC] Fix buffer size calculation
---
modules/rostests/kmtests/ntos_cc/CcSetFileSizes_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/rostests/kmtests/ntos_cc/CcSetFileSizes_drv.c
b/modules/rostests/kmtests/ntos_cc/CcSetFileSizes_drv.c
index 241312c12c5..89bc3973cfb 100644
--- a/modules/rostests/kmtests/ntos_cc/CcSetFileSizes_drv.c
+++ b/modules/rostests/kmtests/ntos_cc/CcSetFileSizes_drv.c
@@ -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