diff options
| author | gingerBill <bill@gingerbill.org> | 2022-05-12 14:21:25 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-05-12 14:21:25 +0100 |
| commit | 0c45a46aab99fdd924afd8e0385fd27e40c60dec (patch) | |
| tree | 8bfa0a837e635bed17388fb20e84933b672fc98a /core/sys/windows/util.odin | |
| parent | d1fc9d3073ac85e643199d7558c6fce548084ba3 (diff) | |
Remove `A` calls in favour of `W` calls
Diffstat (limited to 'core/sys/windows/util.odin')
| -rw-r--r-- | core/sys/windows/util.odin | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/core/sys/windows/util.odin b/core/sys/windows/util.odin index 5c8f35bef..1c8b9175b 100644 --- a/core/sys/windows/util.odin +++ b/core/sys/windows/util.odin @@ -451,20 +451,20 @@ run_as_user :: proc(username, password, application, commandline: string, pi: ^P nil, // lpProcessAttributes, nil, // lpThreadAttributes, false, // bInheritHandles, - 0, // creation flags - nil, // environment, - nil, // current directory: inherit from parent if nil - &si, - pi, - )) - if ok { - if wait { - WaitForSingleObject(pi.hProcess, INFINITE) - CloseHandle(pi.hProcess) - CloseHandle(pi.hThread) - } - return true - } else { - return false - } + 0, // creation flags + nil, // environment, + nil, // current directory: inherit from parent if nil + &si, + pi, + )) + if ok { + if wait { + WaitForSingleObject(pi.hProcess, INFINITE) + CloseHandle(pi.hProcess) + CloseHandle(pi.hThread) + } + return true + } else { + return false + } } |