authorgravatar for carlos.zun@gmail.comCarlos Zúñiga <carlos.zun@gmail.com> 2021-03-21 20:51:48-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-03-22 10:43:04+02:00
log187af14599a083f728f79c4a57ceed30fd01f85d
treeaae22f3918dc6745d16a86662aa22c7c9a678c19
parentba8ac46e1f75212c823568a2e121097bd0bafc5b

Fixed typo in user32

Use CreateWindowExW instead of RegisterClassExW as the type of pfnCreateWindowExW.

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

lib/std/os/windows/user32.zig+1-1
...@@ -373,7 +373,7 @@ pub fn createWindowExA(dwExStyle: u32, lpClassName: [*:0]const u8, lpWindowName:...@@ -373,7 +373,7 @@ pub fn createWindowExA(dwExStyle: u32, lpClassName: [*:0]const u8, lpWindowName:
373}373}
374374
375pub extern "user32" fn CreateWindowExW(dwExStyle: DWORD, lpClassName: [*:0]const u16, lpWindowName: [*:0]const u16, dwStyle: DWORD, X: i32, Y: i32, nWidth: i32, nHeight: i32, hWindParent: ?HWND, hMenu: ?HMENU, hInstance: HINSTANCE, lpParam: ?LPVOID) callconv(WINAPI) ?HWND;375pub extern "user32" fn CreateWindowExW(dwExStyle: DWORD, lpClassName: [*:0]const u16, lpWindowName: [*:0]const u16, dwStyle: DWORD, X: i32, Y: i32, nWidth: i32, nHeight: i32, hWindParent: ?HWND, hMenu: ?HMENU, hInstance: HINSTANCE, lpParam: ?LPVOID) callconv(WINAPI) ?HWND;
376pub var pfnCreateWindowExW: @TypeOf(RegisterClassExW) = undefined;376pub var pfnCreateWindowExW: @TypeOf(CreateWindowExW) = undefined;
377pub fn createWindowExW(dwExStyle: u32, lpClassName: [*:0]const u16, lpWindowName: [*:0]const u16, dwStyle: u32, X: i32, Y: i32, nWidth: i32, nHeight: i32, hWindParent: ?HWND, hMenu: ?HMENU, hInstance: HINSTANCE, lpParam: ?*c_void) !HWND {377pub fn createWindowExW(dwExStyle: u32, lpClassName: [*:0]const u16, lpWindowName: [*:0]const u16, dwStyle: u32, X: i32, Y: i32, nWidth: i32, nHeight: i32, hWindParent: ?HWND, hMenu: ?HMENU, hInstance: HINSTANCE, lpParam: ?*c_void) !HWND {
378 const function = selectSymbol(CreateWindowExW, pfnCreateWindowExW, .win2k);378 const function = selectSymbol(CreateWindowExW, pfnCreateWindowExW, .win2k);
379 const window = function(dwExStyle, lpClassName, lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWindParent, hMenu, hInstance, lpParam);379 const window = function(dwExStyle, lpClassName, lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWindParent, hMenu, hInstance, lpParam);