Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Low Res and high Res ID inversion #618

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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