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{...@@ -1727,14 +1727,14 @@ pub const CreateProcessError = error{
1727};1727};
17281728
1729pub fn CreateProcessW(1729pub fn CreateProcessW(
1730 lpApplicationName: ?LPWSTR,1730 lpApplicationName: ?LPCWSTR,
1731 lpCommandLine: LPWSTR,1731 lpCommandLine: ?LPWSTR,
1732 lpProcessAttributes: ?*SECURITY_ATTRIBUTES,1732 lpProcessAttributes: ?*SECURITY_ATTRIBUTES,
1733 lpThreadAttributes: ?*SECURITY_ATTRIBUTES,1733 lpThreadAttributes: ?*SECURITY_ATTRIBUTES,
1734 bInheritHandles: BOOL,1734 bInheritHandles: BOOL,
1735 dwCreationFlags: DWORD,1735 dwCreationFlags: DWORD,
1736 lpEnvironment: ?*anyopaque,1736 lpEnvironment: ?*anyopaque,
1737 lpCurrentDirectory: ?LPWSTR,1737 lpCurrentDirectory: ?LPCWSTR,
1738 lpStartupInfo: *STARTUPINFOW,1738 lpStartupInfo: *STARTUPINFOW,
1739 lpProcessInformation: *PROCESS_INFORMATION,1739 lpProcessInformation: *PROCESS_INFORMATION,
1740) CreateProcessError!void {1740) CreateProcessError!void {
lib/std/os/windows/kernel32.zig+3-3
...@@ -116,14 +116,14 @@ pub extern "kernel32" fn CreateNamedPipeW(...@@ -116,14 +116,14 @@ pub extern "kernel32" fn CreateNamedPipeW(
116) callconv(WINAPI) HANDLE;116) callconv(WINAPI) HANDLE;
117117
118pub extern "kernel32" fn CreateProcessW(118pub extern "kernel32" fn CreateProcessW(
119 lpApplicationName: ?LPWSTR,119 lpApplicationName: ?LPCWSTR,
120 lpCommandLine: LPWSTR,120 lpCommandLine: ?LPWSTR,
121 lpProcessAttributes: ?*SECURITY_ATTRIBUTES,121 lpProcessAttributes: ?*SECURITY_ATTRIBUTES,
122 lpThreadAttributes: ?*SECURITY_ATTRIBUTES,122 lpThreadAttributes: ?*SECURITY_ATTRIBUTES,
123 bInheritHandles: BOOL,123 bInheritHandles: BOOL,
124 dwCreationFlags: DWORD,124 dwCreationFlags: DWORD,
125 lpEnvironment: ?*anyopaque,125 lpEnvironment: ?*anyopaque,
126 lpCurrentDirectory: ?LPWSTR,126 lpCurrentDirectory: ?LPCWSTR,
127 lpStartupInfo: *STARTUPINFOW,127 lpStartupInfo: *STARTUPINFOW,
128 lpProcessInformation: *PROCESS_INFORMATION,128 lpProcessInformation: *PROCESS_INFORMATION,
129) callconv(WINAPI) BOOL;129) callconv(WINAPI) BOOL;