@marcel91200 / caddy Mirror · read-only / commits / 2e70d1d3
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 15:30 UTC

Fix deprecation notice by using UTF16PtrFromString

Matthew Holt committed Jul 28, 2022 at 15:23 UTC 2e70d1d3bfaf4b789b66e84ba60ee855ab327be3
1 file changed +1 -1
cmd/removebinary_windows.go
+1 -1
@@ -31,6 +31,6 @@ import (
31 func removeCaddyBinary(path string) error {
32 var sI syscall.StartupInfo
33 var pI syscall.ProcessInformation
34 - argv := syscall.StringToUTF16Ptr(filepath.Join(os.Getenv("windir"), "system32", "cmd.exe") + " /C del " + path)
34 + argv := syscall.UTF16PtrFromString(filepath.Join(os.Getenv("windir"), "system32", "cmd.exe") + " /C del " + path)
35 return syscall.CreateProcess(nil, argv, nil, nil, true, 0, nil, nil, &sI, &pI)
36 }