From 8245b2bc7aab4553f368470d97d0110f9daa4fe9 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 19 Nov 2012 15:30:09 -0500 Subject: [PATCH] Windows: AFSSetRenameInfo always set pRenameInfo Make it easier to debug AFSSetRenameInfo by setting pRenameInfo so that the FILE_RENAME_INFORMATION structure is visible within the debugger on all code paths. Change-Id: I6e47c417e2468eeb4f56a680ddcbe75cb8753916 Reviewed-on: http://gerrit.openafs.org/8478 Reviewed-by: Rod Widdowson Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 25d4b792c..5071b07cd 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -2180,6 +2180,8 @@ AFSSetRenameInfo( IN PIRP Irp) bReplaceIfExists = pIrpSp->Parameters.SetFile.ReplaceIfExists; + pRenameInfo = (PFILE_RENAME_INFORMATION)Irp->AssociatedIrp.SystemBuffer; + pSrcFcb = (AFSFcb *)pSrcFileObj->FsContext; pSrcCcb = (AFSCcb *)pSrcFileObj->FsContext2; @@ -2239,8 +2241,6 @@ AFSSetRenameInfo( IN PIRP Irp) if( pTargetFileObj == NULL) { - pRenameInfo = (PFILE_RENAME_INFORMATION)Irp->AssociatedIrp.SystemBuffer; - if ( pRenameInfo->RootDirectory) { -- 2.39.5