This commit is contained in:
sxyazi 2024-06-24 00:52:45 +08:00
parent 3ad259e1b9
commit 7bba667043
No known key found for this signature in database

View file

@ -53,8 +53,8 @@ async fn _paths_to_same_file(a: &Path, b: &Path) -> std::io::Result<bool> {
.open(p)
.await?;
let mut buf = [0u16; MAX_PATH as usize];
tokio::task::spawn_blocking(move || {
let mut buf = [0u16; MAX_PATH as usize];
let len = unsafe {
GetFinalPathNameByHandleW(
file.as_raw_handle() as HANDLE,