aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/elevate/shellexecute.go
diff options
context:
space:
mode:
Diffstat (limited to 'elevate/shellexecute.go')
-rw-r--r--elevate/shellexecute.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/elevate/shellexecute.go b/elevate/shellexecute.go
index 81584f26..b681a8a7 100644
--- a/elevate/shellexecute.go
+++ b/elevate/shellexecute.go
@@ -107,9 +107,9 @@ func ShellExecute(program string, arguments string, directory string, show int32
}
originalPath := dataTableEntry.FullDllName.Buffer
explorerPath := windows.StringToUTF16Ptr(filepath.Join(windowsDirectory, "explorer.exe"))
- rtlInitUnicodeString(&dataTableEntry.FullDllName, explorerPath)
+ windows.RtlInitUnicodeString(&dataTableEntry.FullDllName, explorerPath)
defer func() {
- rtlInitUnicodeString(&dataTableEntry.FullDllName, originalPath)
+ windows.RtlInitUnicodeString(&dataTableEntry.FullDllName, originalPath)
runtime.KeepAlive(explorerPath)
}()