| ... | @@ -1336,7 +1336,7 @@ pub extern "user32" fn AdjustWindowRectEx(lpRect: *RECT, dwStyle: DWORD, bMenu: | ... | @@ -1336,7 +1336,7 @@ pub extern "user32" fn AdjustWindowRectEx(lpRect: *RECT, dwStyle: DWORD, bMenu: |
| 1336 | pub fn adjustWindowRectEx(lpRect: *RECT, dwStyle: u32, bMenu: bool, dwExStyle: u32) !void { | 1336 | pub fn adjustWindowRectEx(lpRect: *RECT, dwStyle: u32, bMenu: bool, dwExStyle: u32) !void { |
| 1337 | assert(dwStyle & WS_OVERLAPPED == 0); | 1337 | assert(dwStyle & WS_OVERLAPPED == 0); |
| 1338 | | 1338 | |
| 1339 | if (AdjustWindowRectEx(lpRect, dwStyle, bMenu, dwExStyle) == 0) { | 1339 | if (AdjustWindowRectEx(lpRect, dwStyle, @boolToInt(bMenu), dwExStyle) == 0) { |
| 1340 | switch (GetLastError()) { | 1340 | switch (GetLastError()) { |
| 1341 | .INVALID_PARAMETER => unreachable, | 1341 | .INVALID_PARAMETER => unreachable, |
| 1342 | else => |err| return windows.unexpectedError(err), | 1342 | else => |err| return windows.unexpectedError(err), |