We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a61c5a5 commit e685318Copy full SHA for e685318
talpid-windows/src/fs.rs
@@ -30,7 +30,7 @@ pub fn is_admin_owned<T: AsRawHandle>(handle: T) -> io::Result<bool> {
30
};
31
32
if result != ERROR_SUCCESS {
33
- return Err(io::Error::last_os_error());
+ return Err(io::Error::from_raw_os_error(result as i32));
34
}
35
36
Ok(
0 commit comments