mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix windows x86 compile errors
This commit is contained in:
@@ -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 }));
|
||||
|
||||
SetWindowLongPtrW(hwnd, GWL_USERDATA, data_ptr as isize);
|
||||
SetWindowLongPtrW(hwnd, GWL_USERDATA, (data_ptr as isize).try_into()?);
|
||||
let _ = ShowWindow(hwnd, SW_SHOWNOACTIVATE);
|
||||
SetTimer(Some(hwnd), TMR_GIF, delay, None);
|
||||
|
||||
|
||||
@@ -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...");
|
||||
let cursor: Box<dyn ReadSeek> = Box::new(Cursor::new(zip_range));
|
||||
let zip = ZipArchive::new(cursor)?;
|
||||
|
||||
@@ -102,6 +102,6 @@ fn show_debug_message(fn_name: &str, message: String) {
|
||||
}
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
fn show_debug_message(fn_name: &str, message: String) {
|
||||
fn show_debug_message(_fn_name: &str, _message: String) {
|
||||
// no-op
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user