From ccb7e63586f909e8262252e04446fd1d291448d4 Mon Sep 17 00:00:00 2001 From: CalunVier <13364488+CalunVier@users.noreply.github.com> Date: Mon, 15 Jul 2024 01:35:06 +0800 Subject: [PATCH] Fix: Low Res and high Res ID inversion --- file-id/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file-id/src/lib.rs b/file-id/src/lib.rs index 5a6703fc..1c8c7b18 100644 --- a/file-id/src/lib.rs +++ b/file-id/src/lib.rs @@ -129,7 +129,7 @@ pub fn get_file_id(path: impl AsRef) -> io::Result { pub fn get_low_res_file_id(path: impl AsRef) -> io::Result { let file = open_file(path)?; - unsafe { get_file_info_ex(&file) } + unsafe { get_file_info(&file) } } /// Get the `FileId` with the high resolution variant for the file or directory at `path` @@ -137,7 +137,7 @@ pub fn get_low_res_file_id(path: impl AsRef) -> io::Result { pub fn get_high_res_file_id(path: impl AsRef) -> io::Result { let file = open_file(path)?; - unsafe { get_file_info(&file) } + unsafe { get_file_info_ex(&file) } } #[cfg(target_family = "windows")]