authorgravatar for michalziulek@gmail.comMichal Ziulek <michalziulek@gmail.com> 2021-07-22 01:28:21+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-31 13:31:41-07:00
log7b9612a92245ccb3be3cac1690fc0a58077336c7
tree391c178bbee41d3b821a4e06f8ed03b288b7530b
parent1cddcf4484c1ac776700e854f2849e03d4efb0fb

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:...@@ -1336,7 +1336,7 @@ pub extern "user32" fn AdjustWindowRectEx(lpRect: *RECT, dwStyle: DWORD, bMenu:
1336pub fn adjustWindowRectEx(lpRect: *RECT, dwStyle: u32, bMenu: bool, dwExStyle: u32) !void {1336pub fn adjustWindowRectEx(lpRect: *RECT, dwStyle: u32, bMenu: bool, dwExStyle: u32) !void {
1337 assert(dwStyle & WS_OVERLAPPED == 0);1337 assert(dwStyle & WS_OVERLAPPED == 0);
13381338
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),