From 7f65136f3da4c77860055c3ee4e8956d7f6958e7 Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Fri, 13 Aug 2021 04:23:50 +0200 Subject: [PATCH] send more help --- .appveyor.yml | 12 ++++++------ src/framework/backend_sdl2.rs | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 1ff8965..b75b186 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -4,11 +4,11 @@ environment: global: PROJECT_NAME: doukutsu-rs matrix: - - channel: nightly - target: x86_64-pc-windows-msvc - target_name: win64 - job_name: windows-x64 - appveyor_build_worker_image: Visual Studio 2019 + # - channel: nightly + # target: x86_64-pc-windows-msvc + # target_name: win64 + # job_name: windows-x64 + # appveyor_build_worker_image: Visual Studio 2019 # - channel: stable # target: i686-pc-windows-msvc # target_name: win32 @@ -60,7 +60,7 @@ for: - appveyor_build_worker_image: macos install: - - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -- -yv --default-toolchain $channel --default-host $target + - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yv --default-toolchain $channel --default-host $target - export PATH=$PATH:$HOME/.cargo/bin - rustup update - rustup default $channel diff --git a/src/framework/backend_sdl2.rs b/src/framework/backend_sdl2.rs index 221dbeb..ec8df5d 100644 --- a/src/framework/backend_sdl2.rs +++ b/src/framework/backend_sdl2.rs @@ -131,6 +131,8 @@ impl BackendEventLoop for SDL2EventLoop { #[cfg(target_os = "macos")] unsafe { use objc::*; + + // no UB: fields are initialized by SDL_GetWindowWMInfo let mut winfo: sdl2_sys::SDL_SysWMinfo = mem::MaybeUninit::uninit().assume_init(); winfo.version.major = sdl2_sys::SDL_MAJOR_VERSION as _; winfo.version.minor = sdl2_sys::SDL_MINOR_VERSION as _;