mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-09-14 13:56:46 +08:00
修复'文件夹项目'带有特殊符号时,打开文件夹失败的问题。
This commit is contained in:
parent
2cd721263e
commit
881fbc9f56
@ -743,6 +743,10 @@ pub fn shell_execute(
|
|||||||
path.parent().unwrap().display().to_string()
|
path.parent().unwrap().display().to_string()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 文件夹
|
||||||
|
let dir_param = format!("\"{}\"", file.to_string());
|
||||||
|
let dir_param = HSTRING::from(dir_param.as_str());
|
||||||
|
let dir_param = PCWSTR(dir_param.as_ptr());
|
||||||
// HSTRING
|
// HSTRING
|
||||||
let operation = HSTRING::from(operation.as_str());
|
let operation = HSTRING::from(operation.as_str());
|
||||||
let file = HSTRING::from(file.as_str());
|
let file = HSTRING::from(file.as_str());
|
||||||
@ -759,7 +763,7 @@ pub fn shell_execute(
|
|||||||
None,
|
None,
|
||||||
w!("open"),
|
w!("open"),
|
||||||
w!("explorer.exe"),
|
w!("explorer.exe"),
|
||||||
file,
|
dir_param,
|
||||||
None,
|
None,
|
||||||
SW_SHOWDEFAULT,
|
SW_SHOWDEFAULT,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user