Browse Source

Fix detection of some dlls as win64 plugins

tags/1.9.5
falkTX 10 years ago
parent
commit
334eacf3f7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      source/utils/CarlaBinaryUtils.hpp

+ 2
- 1
source/utils/CarlaBinaryUtils.hpp View File

@@ -80,7 +80,8 @@ BinaryType getBinaryTypeFromFile(const char* const filename)
if (output == nullptr || output[0] == '\0')
return BINARY_NATIVE;

if (std::strstr(output, "PE32 executable") != nullptr && std::strstr(output, "MS Windows") != nullptr)
if ((std::strstr(output, "PE32 executable") != nullptr ||
std::strstr(output, "PE32+ executable") != nullptr) && std::strstr(output, "MS Windows") != nullptr)
return (std::strstr(output, "x86-64") != nullptr) ? BINARY_WIN64 : BINARY_WIN32;

if (std::strstr(output, "ELF") != nullptr)


Loading…
Cancel
Save