From 334eacf3f7ef45438f8986bc46fdab9dcd3dd213 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 15 Oct 2014 21:59:00 +0100 Subject: [PATCH] Fix detection of some dlls as win64 plugins --- source/utils/CarlaBinaryUtils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/utils/CarlaBinaryUtils.hpp b/source/utils/CarlaBinaryUtils.hpp index 8bb3932f7..2787ba3b0 100644 --- a/source/utils/CarlaBinaryUtils.hpp +++ b/source/utils/CarlaBinaryUtils.hpp @@ -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)