From 2f072b2fe6e7d5927bd4e597614af7f62240ccb1 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 28 Jun 2015 13:43:03 -0400 Subject: [PATCH] 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 --- src/WINNT/afsrdr/npdll/AFS_Npdll.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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... -- 2.39.5