Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a tiny issue. I use Windows 7 x64. How to reproduce: echo > corrupted.dll Create main.go:
echo > corrupted.dll
package main import ( "syscall" "fmt" ) func main() { _, err := syscall.LoadDLL("./corrupted.dll") if err != nil { fmt.Println(err) } }
It writes: Failed to load ./corrupted.dll: %1 is not a valid Win32 application.
Failed to load ./corrupted.dll: %1 is not a valid Win32 application.
Probably there are more similar errors in other places.
The text was updated successfully, but these errors were encountered:
Windows returns you ERROR_BAD_EXE_FORMAT. The error message for it (https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx) is "%1 is not a valid Win32 application.". So that is what Go prints.
It is unfortunate, but I don't see how we can improve this situation.
Alex
Sorry, something went wrong.
Yes, sorry, I just wrote same program in C++ and got same output.
No branches or pull requests
This is a tiny issue. I use Windows 7 x64. How to reproduce:
echo > corrupted.dll
Create main.go:
It writes:
Failed to load ./corrupted.dll: %1 is not a valid Win32 application.
Probably there are more similar errors in other places.
The text was updated successfully, but these errors were encountered: