We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0298c1c commit a313165Copy full SHA for a313165
1 file changed
main.go
@@ -134,6 +134,10 @@ func pipeFromHandleArgument(handleStr string) (*os.File, error) {
134
}
135
136
func main() {
137
+ if windows.SetDllDirectory("") != nil || windows.SetDefaultDllDirectories(windows.LOAD_LIBRARY_SEARCH_SYSTEM32) != nil {
138
+ panic("failed to restrict dll search path")
139
+ }
140
+
141
checkForWow64()
142
143
if len(os.Args) <= 1 {
0 commit comments