Skip to content

Commit 128bf62

Browse files
CalunVier0xpr03
authored andcommitted
Fix: Low Res and high Res ID inversion
1 parent 29601d9 commit 128bf62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

file-id/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ pub fn get_file_id(path: impl AsRef<Path>) -> io::Result<FileId> {
129129
pub fn get_low_res_file_id(path: impl AsRef<Path>) -> io::Result<FileId> {
130130
let file = open_file(path)?;
131131

132-
unsafe { get_file_info_ex(&file) }
132+
unsafe { get_file_info(&file) }
133133
}
134134

135135
/// Get the `FileId` with the high resolution variant for the file or directory at `path`
136136
#[cfg(target_family = "windows")]
137137
pub fn get_high_res_file_id(path: impl AsRef<Path>) -> io::Result<FileId> {
138138
let file = open_file(path)?;
139139

140-
unsafe { get_file_info(&file) }
140+
unsafe { get_file_info_ex(&file) }
141141
}
142142

143143
#[cfg(target_family = "windows")]

0 commit comments

Comments
 (0)