Skip to content

Commit e685318

Browse files
committed
fixup: err code
1 parent a61c5a5 commit e685318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

talpid-windows/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn is_admin_owned<T: AsRawHandle>(handle: T) -> io::Result<bool> {
3030
};
3131

3232
if result != ERROR_SUCCESS {
33-
return Err(io::Error::last_os_error());
33+
return Err(io::Error::from_raw_os_error(result as i32));
3434
}
3535

3636
Ok(

0 commit comments

Comments
 (0)