Return the correct local name in case of automatic redirection.
Alreaedy sent upstream.

CORE-11757

svn path=/trunk/; revision=72097
This commit is contained in:
Pierre Schweitzer 2016-08-03 14:41:23 +00:00
parent 708319cff7
commit 7f771e6484

View 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');