diff --git a/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp b/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp index 63f25342a2..6d479f1c30 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp @@ -2061,7 +2061,6 @@ AFSOpenTargetDirectory( IN PIRP Irp, PIO_STACK_LOCATION pIrpSp = IoGetCurrentIrpStackLocation( Irp); PACCESS_MASK pDesiredAccess = NULL; USHORT usShareAccess; - BOOLEAN bRemoveAccess = FALSE; BOOLEAN bAllocatedCcb = FALSE; BOOLEAN bReleaseFcb = FALSE, bAllocatedFcb = FALSE; AFSObjectInfoCB *pParentObject = NULL, *pTargetObject = NULL; @@ -2298,13 +2297,6 @@ try_exit: *Ccb = NULL; - if( bRemoveAccess) - { - - IoRemoveShareAccess( pFileObject, - &pParentObject->Fcb->ShareAccess); - } - if( bAllocatedFcb) {