Zig Version
0.13.0-dev.75+5c9eb4081
Mismatched signatures
GetCurrentDirectoryW
| pubextern"kernel32"fnGetCurrentDirectoryW(nBufferLength: DWORD, lpBuffer: ?[*]WCHAR) callconv(WINAPI) DWORD; |
lpBuffer should be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcurrentdirectoryFormatMessageW
| pubextern"kernel32"fnFormatMessageW(dwFlags: DWORD, lpSource: ?LPVOID, dwMessageId: Win32Error, dwLanguageId: DWORD, lpBuffer: [*]u16, nSize: DWORD, Arguments: ?*va_list) callconv(WINAPI) DWORD; |
lpBuffer should be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagewGetEnvironmentVariableW
| pubextern"kernel32"fnGetEnvironmentVariableW(lpName: LPWSTR, lpBuffer: [*]u16, nSize: DWORD) callconv(WINAPI) DWORD; |
lpBuffer should be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getenvironmentvariablewGetModuleFileNameW
| pubextern"kernel32"fnGetModuleFileNameW(hModule: ?HMODULE, lpFilename: [*]u16, nSize: DWORD) callconv(WINAPI) DWORD; |
lpFilename should be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamewGetFullPathNameW
| pubextern"kernel32"fnGetFullPathNameW( |
| lpFileName: [*:0]constu16, |
| nBufferLength: u32, |
| lpBuffer: [*]u16, |
| lpFilePart: ?*?[*:0]u16, |
| ) callconv(@import("std").os.windows.WINAPI) u32; |
lpBuffer should be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew
Fixing these would be a breaking change.
Expected Behavior
extern signatures should be correct
Zig Version
0.13.0-dev.75+5c9eb4081
Mismatched signatures
GetCurrentDirectoryWzig/lib/std/os/windows/kernel32.zig
Line 178 in 084c2cd
lpBuffershould be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcurrentdirectoryFormatMessageWzig/lib/std/os/windows/kernel32.zig
Line 160 in 084c2cd
lpBuffershould be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagewGetEnvironmentVariableWzig/lib/std/os/windows/kernel32.zig
Line 189 in 084c2cd
lpBuffershould be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getenvironmentvariablewGetModuleFileNameWzig/lib/std/os/windows/kernel32.zig
Line 199 in 084c2cd
lpFilenameshould be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamewGetFullPathNameWzig/lib/std/os/windows/kernel32.zig
Lines 220 to 225 in 084c2cd
lpBuffershould be null-terminated according to https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamewFixing these would be a breaking change.
Expected Behavior
extern signatures should be correct