From: Jeffrey Altman Date: Sun, 28 Jun 2015 17:43:03 +0000 (-0400) Subject: Windows: NPGetResourceInformation return redir error X-Git-Tag: upstream/1.8.0_pre1^2~237 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2f072b2fe6e7d5927bd4e597614af7f62240ccb1;p=packages%2Fo%2Fopenafs.git Windows: NPGetResourceInformation return redir error When the redirector ioctl fails in NPGetResourceInformation() return the actual error to the caller. Do not hide all errors as WN_BAD_NETNAME. Change-Id: Ie02ca5331aa34aef4476c99045048871c6c25de0 Reviewed-on: http://gerrit.openafs.org/11915 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 ede424d34..1f8db9b48 100644 --- a/src/WINNT/afsrdr/npdll/AFS_Npdll.c +++ b/src/WINNT/afsrdr/npdll/AFS_Npdll.c @@ -2973,13 +2973,14 @@ NPGetResourceInformation( LPNETRESOURCE lpNetResource, if( !dwError) { -#ifdef AFS_DEBUG_TRACE - DWORD gle = GetLastError(); + dwStatus = GetLastError(); +#ifdef AFS_DEBUG_TRACE AFSDbgPrint( L"NPGetResourceInformation Failed to get connection info from file system for local %s gle 0x%x\n", - lpNetResource->lpRemoteName, gle); + lpNetResource->lpRemoteName, dwStatus); #endif - try_return( dwStatus = WN_BAD_NETNAME); + + try_return( dwStatus); } // Determine the space needed for this entry...