projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[KMTEST:NTOS_CC] Fix buffer size calculation
[reactos.git]
/
modules
/
rostests
/
kmtests
/
ntos_cc
/
CcSetFileSizes_drv.c
diff --git
a/modules/rostests/kmtests/ntos_cc/CcSetFileSizes_drv.c
b/modules/rostests/kmtests/ntos_cc/CcSetFileSizes_drv.c
index
241312c
..
89bc397
100644
(file)
--- 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