mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-23 21:17:45 +00:00
Fix a rare case where installation might fail
This commit is contained in:
parent
2868a2adad
commit
952b06cd76
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ pub fn install_game(installer_path: &str, game_directory: &str) -> Result<(), In
|
|||
// set unshield to shut up
|
||||
unsafe { unshield_set_log_level(0) };
|
||||
|
||||
let unshield = unsafe { unshield_open(b"data1.cab".as_ptr() as *const c_char) };
|
||||
let unshield = unsafe { unshield_open(CStr::from_bytes_with_nul(b"data1.cab\0").unwrap().as_ptr()) };
|
||||
let file_count = unsafe { unshield_file_count(unshield) };
|
||||
|
||||
for i in 0..file_count {
|
||||
|
|
Loading…
Add table
Reference in a new issue