&uniRemoteName,
ConnectCB->LocalName,
ConnectCB->AuthenticationId.QuadPart));
+
+ *ResultStatus = WN_ALREADY_CONNECTED;
}
else
{
"AFSAddConnection ALREADY_CONNECTED remote name %wZ Local (NULL) authentication id %I64X\n",
&uniRemoteName,
ConnectCB->AuthenticationId.QuadPart));
- }
- *ResultStatus = WN_ALREADY_CONNECTED;
+ *ResultStatus = WN_SUCCESS;
+ }
*ReturnOutputBufferLength = sizeof( ULONG);
- try_return( ntStatus);
+ try_return( ntStatus = STATUS_SUCCESS);
}
//
__Enter
{
+ if( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_VERBOSE,
+ "AFSGetConnection Retrieved authentication id %I64X\n",
+ ConnectCB->AuthenticationId.QuadPart));
+ }
+
if( ConnectCB->LocalName != L'\0')
{
&pRDRDevExt->Specific.RDR.ProviderListLock,
PsGetCurrentThread()));
- if( ConnectCB->AuthenticationId.QuadPart == 0)
- {
-
- ConnectCB->AuthenticationId = AFSGetAuthenticationId();
-
- AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
- AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnection Retrieved authentication id %I64X\n",
- ConnectCB->AuthenticationId.QuadPart));
- }
-
AFSAcquireShared( &pRDRDevExt->Specific.RDR.ProviderListLock,
TRUE);
// adjust it to be the server name itself
//
- if( uniShareName.Length == 0 ||
- RtlCompareUnicodeString( &uniShareName,
- &AFSGlobalRootName,
- TRUE) == 0)
+ if( uniShareName.Length == 0)
{
bGlobalEnumeration = TRUE;