diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 6892b12b26..d6bf731be1 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -2300,6 +2300,18 @@ AFSSetFileLinkInfo( IN PIRP Irp) &pSrcFcb->ObjectInformation->ParentFileId); } + if( pSrcParentObject == NULL) + { + + AFSDbgTrace(( AFS_SUBSYSTEM_FILE_PROCESSING, + AFS_TRACE_LEVEL_ERROR, + "AFSSetFileLinkInfo Unable to resolve SrcParentObject (INVALID_PARAMETER)\n")); + + ASSERT( FALSE); + + try_return( ntStatus = STATUS_INVALID_PARAMETER); + } + pFileLinkInfo = (PFILE_LINK_INFORMATION)Irp->AssociatedIrp.SystemBuffer; // @@ -2723,6 +2735,18 @@ AFSSetRenameInfo( IN PIRP Irp) &pSrcFcb->ObjectInformation->ParentFileId); } + if( pSrcParentObject == NULL) + { + + AFSDbgTrace(( AFS_SUBSYSTEM_FILE_PROCESSING, + AFS_TRACE_LEVEL_ERROR, + "AFSSetRenameInfo Unable to resolve SrcParentObject (INVALID_PARAMETER)\n")); + + ASSERT( FALSE); + + try_return( ntStatus = STATUS_INVALID_PARAMETER); + } + // // Perform some basic checks to ensure FS integrity //