Fix network share connection
This commit is contained in:
parent
b8fe43fd8f
commit
3b975af2ba
1 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,8 @@ pub fn connect_network_share(
|
|||
lpRemoteName: remote_name.as_c_str().as_ptr() as *mut u8,
|
||||
};
|
||||
|
||||
let username = to_cstr(username);
|
||||
let username = format!("{server}\\{username}");
|
||||
let username = to_cstr(&username);
|
||||
let password = to_cstr(password);
|
||||
|
||||
// mount
|
||||
|
|
|
|||
Loading…
Reference in a new issue