mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[MPR]
Set the CONNECT_LOCALDRIVE on successful local redirection To be sent upstream. Patch 5/6 CORE-11757 ROSAPPS-303 svn path=/trunk/; revision=72086
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user