bastion 0.63.1
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
//go:build windows
|
||||
|
||||
package main
|
||||
|
||||
import "golang.org/x/sys/windows"
|
||||
|
||||
// systemDir is System32, from Windows itself rather than the environment.
|
||||
func systemDir() string {
|
||||
if d, err := windows.GetSystemDirectory(); err == nil && d != "" {
|
||||
return d
|
||||
}
|
||||
return `C:\Windows\System32`
|
||||
}
|
||||
Reference in New Issue
Block a user