diff --git a/src/WINNT/afsrdr/npdll/AFS_Npdll.c b/src/WINNT/afsrdr/npdll/AFS_Npdll.c index 56e9ef1663..9b889bef74 100644 --- a/src/WINNT/afsrdr/npdll/AFS_Npdll.c +++ b/src/WINNT/afsrdr/npdll/AFS_Npdll.c @@ -912,6 +912,11 @@ NPCancelConnection( LPWSTR lpName, #endif try_return( dwStatus = WN_NOT_CONNECTED); } + + // + // NPGetConnection returns the buffer size not the length without NUL + // + dwRemoteNameLength -= sizeof( WCHAR); } else {