aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/elevate/shellexecute.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-26 07:30:17 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-26 07:43:49 -0600
commitfa27bd22a6c35a702b7b1c24adbb40206331d5a5 (patch)
tree889bd4fac7ad182f8902eab3963ca975dc2ca935 /elevate/shellexecute.go
parentfirewall: use RtlGetNtVersionNumbers for kernel compat checks (diff)
downloadwireguard-windows-fa27bd22a6c35a702b7b1c24adbb40206331d5a5.tar.xz
wireguard-windows-fa27bd22a6c35a702b7b1c24adbb40206331d5a5.zip
elevate: mark as terminal services aware
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--elevate/shellexecute.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/elevate/shellexecute.go b/elevate/shellexecute.go
index 149a4c57..c4cd04da 100644
--- a/elevate/shellexecute.go
+++ b/elevate/shellexecute.go
@@ -94,7 +94,7 @@ func ShellExecute(program string, arguments string, directory string, show int32
return
}
var windowsDirectory [windows.MAX_PATH]uint16
- if _, err = getWindowsDirectory(&windowsDirectory[0], windows.MAX_PATH); err != nil {
+ if _, err = getSystemWindowsDirectory(&windowsDirectory[0], windows.MAX_PATH); err != nil {
return
}
originalPath := dataTableEntry.FullDllName.Buffer