Browse Source

minor cleanup

pull/10/head
Fenrir 8 years ago
parent
commit
96a2d13370
  1. 4
      src/services/fs.rs

4
src/services/fs.rs

@ -106,7 +106,7 @@ impl Archive {
} }
} }
pub fn id(&self) -> ArchiveID { pub fn get_id(&self) -> ArchiveID {
self.id self.id
} }
} }
@ -135,7 +135,7 @@ impl OpenOptions {
unsafe { unsafe {
let mut file_handle: u32 = 0; let mut file_handle: u32 = 0;
let wide = path.as_os_str().encode_wide().collect::<Vec<_>>(); let wide = path.as_os_str().encode_wide().collect::<Vec<_>>();
let ctr_path = fsMakePath(PathType::UTF16.into(), wide.as_slice().as_ptr() as *mut _); let ctr_path = fsMakePath(PathType::UTF16.into(), wide.as_ptr() as *mut _);
let ret = FSUSER_OpenFile(&mut file_handle, self.arch_handle, ctr_path, flags, 0); let ret = FSUSER_OpenFile(&mut file_handle, self.arch_handle, ctr_path, flags, 0);
if ret < 0 { if ret < 0 {
Err(ret) Err(ret)

Loading…
Cancel
Save