authorgravatar for michalziulek@gmail.comMichal Ziulek <michalziulek@gmail.com> 2021-07-22 01:28:21+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-07-22 01:28:21+02:00
log18b8738069268cc913bbae9580d2d170618a2ae9
treebb5a799b9c6719c5d4637741cea23eca1d77b2d8
parent093e10b66e5db5fcbccf941b4ffdab6330a83faa
signature Signed by PGP key 4AEE18F83AFDEB23

Fixed compile error: 'bMenu' needs to casted. (#9426)


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/windows/user32.zig+1-1
......@@ -1336,7 +1336,7 @@ pub extern "user32" fn AdjustWindowRectEx(lpRect: *RECT, dwStyle: DWORD, bMenu:
13361336pub fn adjustWindowRectEx(lpRect: *RECT, dwStyle: u32, bMenu: bool, dwExStyle: u32) !void {
13371337 assert(dwStyle & WS_OVERLAPPED == 0);
13381338
1339 if (AdjustWindowRectEx(lpRect, dwStyle, bMenu, dwExStyle) == 0) {
1339 if (AdjustWindowRectEx(lpRect, dwStyle, @boolToInt(bMenu), dwExStyle) == 0) {
13401340 switch (GetLastError()) {
13411341 .INVALID_PARAMETER => unreachable,
13421342 else => |err| return windows.unexpectedError(err),