From: Pierre Schweitzer Date: Fri, 11 Nov 2016 10:44:51 +0000 (+0000) Subject: [KMTESTS:MM] X-Git-Tag: ReactOS-0.4.4-FOSDEM2017~334 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=2fdacdbbd6189639bc6934654cd9e496ad22f9bb [KMTESTS:MM] Bugfix for IRP_MJ_SET_INFORMATION/FileEndOfFileInformation: really set the information. The test still works fine in Windows and still fails hard in ReactOS. svn path=/trunk/; revision=73200 --- diff --git a/rostests/kmtests/ntos_mm/NtCreateSection_drv.c b/rostests/kmtests/ntos_mm/NtCreateSection_drv.c index 61ec9e2a416..88693081f0b 100644 --- a/rostests/kmtests/ntos_mm/NtCreateSection_drv.c +++ b/rostests/kmtests/ntos_mm/NtCreateSection_drv.c @@ -477,6 +477,7 @@ TestIrpHandler( ok_bool_false(IoStack->Parameters.SetFile.AdvanceOnly, "AdvanceOnly set!\n"); ok(EOFInfo->EndOfFile.QuadPart > Fcb->Header.AllocationSize.QuadPart, "New size smaller\n"); + Fcb->Header.AllocationSize.QuadPart = EOFInfo->EndOfFile.QuadPart; if (CcIsFileCached(IoStack->FileObject)) { CcSetFileSizes(IoStack->FileObject, (PCC_FILE_SIZES)(&(Fcb->Header.AllocationSize)));