From 2fdacdbbd6189639bc6934654cd9e496ad22f9bb Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 11 Nov 2016 10:44:51 +0000 Subject: [PATCH] [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 --- rostests/kmtests/ntos_mm/NtCreateSection_drv.c | 1 + 1 file changed, 1 insertion(+) 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)));