mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
Fixed compile error: 'bMenu' needs to casted. (#9426)
This commit is contained in:
parent
093e10b66e
commit
18b8738069
@ -1336,7 +1336,7 @@ pub extern "user32" fn AdjustWindowRectEx(lpRect: *RECT, dwStyle: DWORD, bMenu:
|
||||
pub fn adjustWindowRectEx(lpRect: *RECT, dwStyle: u32, bMenu: bool, dwExStyle: u32) !void {
|
||||
assert(dwStyle & WS_OVERLAPPED == 0);
|
||||
|
||||
if (AdjustWindowRectEx(lpRect, dwStyle, bMenu, dwExStyle) == 0) {
|
||||
if (AdjustWindowRectEx(lpRect, dwStyle, @boolToInt(bMenu), dwExStyle) == 0) {
|
||||
switch (GetLastError()) {
|
||||
.INVALID_PARAMETER => unreachable,
|
||||
else => |err| return windows.unexpectedError(err),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user