windows: bump windows-sys to 0.52

This commit is contained in:
Kirill Chibisov 2024-04-22 17:21:53 +04:00 committed by GitHub
parent babbb715c5
commit 2491f2bbd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 11 additions and 11 deletions

View file

@ -99,7 +99,7 @@ pub fn is_maximized(window: HWND) -> bool {
let mut placement: WINDOWPLACEMENT = mem::zeroed();
placement.length = mem::size_of::<WINDOWPLACEMENT>() as u32;
GetWindowPlacement(window, &mut placement);
placement.showCmd == SW_MAXIMIZE
placement.showCmd == SW_MAXIMIZE as u32
}
}