If there is no redirector device present, return WN_NO_NETWORK
to indicate that this network provider is not ready for browsing.
Change-Id: I3e33769bb2d52a59b0ff993aa07e89d959d60800
Reviewed-on: http://gerrit.openafs.org/10523
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
DWORD dwStatus = WN_SUCCESS;
AFSEnumerationCB *pEnumCB = NULL;
+ HANDLE hControlDevice = NULL;
#ifdef AFS_DEBUG_TRACE
if ( lpNetResource == NULL)
}
#endif
+ hControlDevice = OpenRedirector();
+
+ if( hControlDevice == NULL)
+ {
+
+#ifdef AFS_DEBUG_TRACE
+ AFSDbgPrint( L"NPOpenEnum OpenRedirector failure, returning WN_NET_ERROR\n");
+#endif
+
+ return WN_NO_NETWORK;
+ }
+
+ CloseHandle( hControlDevice);
+
+
*lphEnum = HeapAlloc( GetProcessHeap( ), HEAP_ZERO_MEMORY, sizeof( AFSEnumerationCB));
if( *lphEnum == NULL)