Skip to content

Commit

Permalink
Fix: Low Res and high Res ID inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
CalunVier authored and 0xpr03 committed Jul 16, 2024
1 parent 29601d9 commit 128bf62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file-id/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ pub fn get_file_id(path: impl AsRef<Path>) -> io::Result<FileId> {
pub fn get_low_res_file_id(path: impl AsRef<Path>) -> io::Result<FileId> {
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`
#[cfg(target_family = "windows")]
pub fn get_high_res_file_id(path: impl AsRef<Path>) -> io::Result<FileId> {
let file = open_file(path)?;

unsafe { get_file_info(&file) }
unsafe { get_file_info_ex(&file) }
}

#[cfg(target_family = "windows")]
Expand Down

0 comments on commit 128bf62

Please sign in to comment.