authorgravatar for carl@astholm.seCarl Åstholm <carl@astholm.se> 2023-12-20 22:38:28+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-12-22 12:23:27+02:00
log60982ea5bd05695a0e97205cf3de223bd9111767
treef729b2e358a4b203850448e2f246d2b25c19c0af
parentd787b78d2c7e4d6264a27308995e522614e03a7f

Correct `CreateProcessW` parameter types


2 files changed, 6 insertions(+), 6 deletions(-)

lib/std/os/windows.zig+3-3
......@@ -1727,14 +1727,14 @@ pub const CreateProcessError = error{
17271727};
17281728
17291729pub fn CreateProcessW(
1730 lpApplicationName: ?LPWSTR,
1731 lpCommandLine: LPWSTR,
1730 lpApplicationName: ?LPCWSTR,
1731 lpCommandLine: ?LPWSTR,
17321732 lpProcessAttributes: ?*SECURITY_ATTRIBUTES,
17331733 lpThreadAttributes: ?*SECURITY_ATTRIBUTES,
17341734 bInheritHandles: BOOL,
17351735 dwCreationFlags: DWORD,
17361736 lpEnvironment: ?*anyopaque,
1737 lpCurrentDirectory: ?LPWSTR,
1737 lpCurrentDirectory: ?LPCWSTR,
17381738 lpStartupInfo: *STARTUPINFOW,
17391739 lpProcessInformation: *PROCESS_INFORMATION,
17401740) CreateProcessError!void {
lib/std/os/windows/kernel32.zig+3-3
......@@ -116,14 +116,14 @@ pub extern "kernel32" fn CreateNamedPipeW(
116116) callconv(WINAPI) HANDLE;
117117
118118pub extern "kernel32" fn CreateProcessW(
119 lpApplicationName: ?LPWSTR,
120 lpCommandLine: LPWSTR,
119 lpApplicationName: ?LPCWSTR,
120 lpCommandLine: ?LPWSTR,
121121 lpProcessAttributes: ?*SECURITY_ATTRIBUTES,
122122 lpThreadAttributes: ?*SECURITY_ATTRIBUTES,
123123 bInheritHandles: BOOL,
124124 dwCreationFlags: DWORD,
125125 lpEnvironment: ?*anyopaque,
126 lpCurrentDirectory: ?LPWSTR,
126 lpCurrentDirectory: ?LPCWSTR,
127127 lpStartupInfo: *STARTUPINFOW,
128128 lpProcessInformation: *PROCESS_INFORMATION,
129129) callconv(WINAPI) BOOL;