Fix windows x86 compile errors

This commit is contained in:
Caelan Sayler
2025-06-17 00:11:11 +01:00
parent 827ed71d0c
commit 84704156b1
3 changed files with 3 additions and 3 deletions

View File

@@ -200,7 +200,7 @@ impl SplashWindow {
let data_ptr = Box::into_raw(Box::new(Self { frames, rx, frame_idx: 0, w, h, progress: 0, hdc_screen })); let data_ptr = Box::into_raw(Box::new(Self { frames, rx, frame_idx: 0, w, h, progress: 0, hdc_screen }));
SetWindowLongPtrW(hwnd, GWL_USERDATA, data_ptr as isize); SetWindowLongPtrW(hwnd, GWL_USERDATA, (data_ptr as isize).try_into()?);
let _ = ShowWindow(hwnd, SW_SHOWNOACTIVATE); let _ = ShowWindow(hwnd, SW_SHOWNOACTIVATE);
SetTimer(Some(hwnd), TMR_GIF, delay, None); SetTimer(Some(hwnd), TMR_GIF, delay, None);

View File

@@ -51,7 +51,7 @@ pub fn load_bundle_from_file<'a, P: AsRef<Path>>(file_name: P) -> Result<BundleZ
}) })
} }
pub fn load_bundle_from_memory(zip_range: &[u8]) -> Result<BundleZip, Error> { pub fn load_bundle_from_memory(zip_range: &[u8]) -> Result<BundleZip<'_>, Error> {
info!("Loading bundle from embedded zip..."); info!("Loading bundle from embedded zip...");
let cursor: Box<dyn ReadSeek> = Box::new(Cursor::new(zip_range)); let cursor: Box<dyn ReadSeek> = Box::new(Cursor::new(zip_range));
let zip = ZipArchive::new(cursor)?; let zip = ZipArchive::new(cursor)?;

View File

@@ -102,6 +102,6 @@ fn show_debug_message(fn_name: &str, message: String) {
} }
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
fn show_debug_message(fn_name: &str, message: String) { fn show_debug_message(_fn_name: &str, _message: String) {
// no-op // no-op
} }