Skip to content

Commit

Permalink
ignore incompatible plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Feb 8, 2022
1 parent a96199a commit 2473921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ void FindFiles(WIN32_FIND_DATAW* fd)
if (h == NULL)
{
auto e = GetLastError();
if (e != ERROR_DLL_INIT_FAILED) // in case dllmain returns false
if (e != ERROR_DLL_INIT_FAILED && e != ERROR_BAD_EXE_FORMAT) // in case dllmain returns false or IMAGE_MACHINE is not compatible
{
std::wstring msg = L"Unable to load " + std::wstring(fd->cFileName) + L". Error: " + std::to_wstring(e);
MessageBoxW(0, msg.c_str(), L"ASI Loader", MB_ICONERROR);
Expand Down

0 comments on commit 2473921

Please sign in to comment.