Bump windows-sys to 0.42 (#2540)

This commit is contained in:
Ihor Ranchynskyi 2022-10-31 22:19:45 +00:00 committed by GitHub
parent 04d9e081b8
commit a7a7cc64cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ core-graphics = "0.22.3"
dispatch = "0.2.0"
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.36"
version = "0.42"
features = [
"Win32_Devices_HumanInterfaceDevice",
"Win32_Foundation",

View file

@ -1037,7 +1037,7 @@ unsafe fn register_window_class<T: 'static>(
.map(|icon| icon.inner.as_raw_handle())
.unwrap_or(0);
use windows_sys::Win32::UI::WindowsAndMessaging::COLOR_WINDOWFRAME;
use windows_sys::Win32::Graphics::Gdi::COLOR_WINDOWFRAME;
let class = WNDCLASSEXW {
cbSize: mem::size_of::<WNDCLASSEXW>() as u32,
style: CS_HREDRAW | CS_VREDRAW,