Fix compile error due to GetModuleFileNameW binding change
In https://github.com/ziglang/zig/pull/19641, this binding changed from `[*]u16` to `LPWSTR` which made it a sentinel-terminated pointer. This introduced a compiler error in the `std.os.windows.GetModuleFileNameW` wrapper since it takes a `[*]u16` pointer. This commit changes the binding back to what it was before instead of introducing a breaking change to `std.os.windows.GetModuleFileNameW`
Related: https://github.com/ziglang/zig/issues/20858
1 files changed, 1 insertions(+), 1 deletions(-)
lib
lib/std/os/windows/kernel32.zig+1-1
| ... | ... | @@ -597,7 +597,7 @@ pub extern "kernel32" fn GetProcessHeap() callconv(WINAPI) ?HANDLE; |
| 597 | 597 | // TODO: Wrapper around LdrGetDllFullName. |
| 598 | 598 | pub extern "kernel32" fn GetModuleFileNameW( |
| 599 | 599 | hModule: ?HMODULE, |
| 600 | | lpFilename: LPWSTR, |
| 600 | lpFilename: [*]WCHAR, |
| 601 | 601 | nSize: DWORD, |
| 602 | 602 | ) callconv(WINAPI) DWORD; |
| 603 | 603 | |