diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-07-28 15:23:56 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-07-28 15:24:08 -0600 |
commit | 2e70d1d3bfaf4b789b66e84ba60ee855ab327be3 (patch) | |
tree | e0a75c334d5e900825c2340666e93b14026e685f /cmd | |
parent | ff2ba6de8a312813140b5db24f14a407e98f4509 (diff) |
Fix deprecation notice by using UTF16PtrFromString
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/removebinary_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/removebinary_windows.go b/cmd/removebinary_windows.go index 3d7ade5..3a6df66 100644 --- a/cmd/removebinary_windows.go +++ b/cmd/removebinary_windows.go @@ -31,6 +31,6 @@ import ( func removeCaddyBinary(path string) error { var sI syscall.StartupInfo var pI syscall.ProcessInformation - argv := syscall.StringToUTF16Ptr(filepath.Join(os.Getenv("windir"), "system32", "cmd.exe") + " /C del " + path) + argv := syscall.UTF16PtrFromString(filepath.Join(os.Getenv("windir"), "system32", "cmd.exe") + " /C del " + path) return syscall.CreateProcess(nil, argv, nil, nil, true, 0, nil, nil, &sI, &pI) } |