| author | |
| committer | |
| log | efde3ed04a8745a567f2cb964b45e094bae59344 |
| tree | db7e4567331df41aeb7330c953bef173065db6d4 |
| parent | d60c100eb6f1d91b3b2bb6ac38f08450c7ec8356 |
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/208581 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/windows/kernel32.zig+1-1| ... | @@ -597,7 +597,7 @@ pub extern "kernel32" fn GetProcessHeap() callconv(WINAPI) ?HANDLE; | ... | @@ -597,7 +597,7 @@ pub extern "kernel32" fn GetProcessHeap() callconv(WINAPI) ?HANDLE; |
| 597 | // TODO: Wrapper around LdrGetDllFullName. | 597 | // TODO: Wrapper around LdrGetDllFullName. |
| 598 | pub extern "kernel32" fn GetModuleFileNameW( | 598 | pub extern "kernel32" fn GetModuleFileNameW( |
| 599 | hModule: ?HMODULE, | 599 | hModule: ?HMODULE, |
| 600 | lpFilename: LPWSTR, | 600 | lpFilename: [*]WCHAR, |
| 601 | nSize: DWORD, | 601 | nSize: DWORD, |
| 602 | ) callconv(WINAPI) DWORD; | 602 | ) callconv(WINAPI) DWORD; |
| 603 | 603 |