[MPR]
authorPierre Schweitzer <pierre@reactos.org>
Wed, 3 Aug 2016 14:41:23 +0000 (14:41 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 3 Aug 2016 14:41:23 +0000 (14:41 +0000)
Return the correct local name in case of automatic redirection.
Alreaedy sent upstream.

CORE-11757

svn path=/trunk/; revision=72097

reactos/dll/win32/mpr/wnet.c

index cbd5851..7ffc427 100644 (file)
@@ -1918,7 +1918,7 @@ static DWORD wnet_use_connection( struct use_connection_context *ctxt )
         else if ((caps & WNNC_CON_ADDCONNECTION) && provider->addConnection)
             ret = provider->addConnection(&netres, ctxt->password, ctxt->userid);
 
-        if (redirect)
+        if (ret != NO_ERROR && redirect)
             letter[0] -= 1;
     } while (redirect && ret == WN_ALREADY_CONNECTED && letter[0] >= 'c');