[MPR]
authorPierre Schweitzer <pierre@reactos.org>
Tue, 2 Aug 2016 09:57:24 +0000 (09:57 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 2 Aug 2016 09:57:24 +0000 (09:57 +0000)
Set the CONNECT_LOCALDRIVE on successful local redirection
To be sent upstream.

Patch 5/6

CORE-11757
ROSAPPS-303

svn path=/trunk/; revision=72086

reactos/dll/win32/mpr/wnet.c

index 32a63f2..bf94d00 100644 (file)
@@ -1612,6 +1612,8 @@ static void use_connection_set_accessnameW(struct use_connection_context *ctxt)
     WCHAR *accessname = ctxt->accessname;
     if (ctxt->resource->lpLocalName)
         strcpyW(accessname, ctxt->resource->lpLocalName);
+        if (ctxt->result)
+            *ctxt->result = CONNECT_LOCALDRIVE;
     else
         strcpyW(accessname, ctxt->resource->lpRemoteName);
 }
@@ -1808,6 +1810,8 @@ static void use_connection_set_accessnameA(struct use_connection_context *ctxt)
     char *accessname = ctxt->accessname;
     if (ctxt->resourceA->lpLocalName)
         strcpy(accessname, ctxt->resourceA->lpLocalName);
+        if (ctxt->result)
+            *ctxt->result = CONNECT_LOCALDRIVE;
     else
         strcpy(accessname, ctxt->resourceA->lpRemoteName);
 }