From: Jeffrey Altman Date: Sat, 10 Aug 2013 04:44:08 +0000 (-0400) Subject: Windows: np AddConnection error code X-Git-Tag: openafs-stable-1_8_0pre1~1041 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=4bc62d6bd71ece7d1cb91e77d92ac40789f42ddf Windows: np AddConnection error code If AddConnection fails because DeviceIOcontrol fails, do not return out of memory which is an unsupported error code. Report a network failure. Change-Id: Ib0c83a2fc0b681a94483e1b16ab102354767c993 Reviewed-on: http://gerrit.openafs.org/10149 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/npdll/AFS_Npdll.c b/src/WINNT/afsrdr/npdll/AFS_Npdll.c index fdc68c9..eae4cd4 100644 --- a/src/WINNT/afsrdr/npdll/AFS_Npdll.c +++ b/src/WINNT/afsrdr/npdll/AFS_Npdll.c @@ -851,7 +851,7 @@ NPAddConnection3( HWND hwndOwner, #ifdef AFS_DEBUG_TRACE AFSDbgPrint( L"NPAddConnection3 Failed to add connection to file system %d\n", GetLastError()); #endif - try_return( dwStatus = WN_OUT_OF_MEMORY); + try_return( dwStatus = WN_NET_ERROR); } //