From 39847b718166a6f3c09db2996afcdfe693366866 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Tue, 12 Jan 2016 14:41:53 -0800 Subject: [PATCH] sys: IRP_MJ_CREATE refactoring --- src/sys/create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sys/create.c b/src/sys/create.c index 4ae84d73..a1af9393 100644 --- a/src/sys/create.c +++ b/src/sys/create.c @@ -460,7 +460,7 @@ VOID FspFsvolCreateComplete( /* populate the FsContext fields from the Response */ FsContext->Header.AllocationSize.QuadPart = Response->Rsp.Create.Opened.AllocationSize; - FsContext->Header.FileSize.QuadPart = Response->Rsp.Create.Opened.AllocationSize; + FsContext->Header.FileSize.QuadPart = Response->Rsp.Create.Opened.FileSize; FsContext->UserContext = Response->Rsp.Create.Opened.UserContext; DeleteOnClose = BooleanFlagOn(Request->Req.Create.CreateOptions, FILE_DELETE_ON_CLOSE); @@ -585,8 +585,8 @@ VOID FspFsvolCreateComplete( } /* file was successfully overwritten/superseded */ - FsContext->Header.AllocationSize.QuadPart = Response->Rsp.Create.Opened.AllocationSize; - FsContext->Header.FileSize.QuadPart = Response->Rsp.Create.Opened.AllocationSize; + FsContext->Header.AllocationSize.QuadPart = Response->Rsp.Overwrite.AllocationSize; + FsContext->Header.FileSize.QuadPart = Response->Rsp.Overwrite.FileSize; CcSetFileSizes(FileObject, (PCC_FILE_SIZES)&FsContext->Header.AllocationSize); FspFileContextPgioUnlock(FsContext);