From 61b391ee432a3e74f07c35aa69814d17eb093785 Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Fri, 7 Oct 2022 12:13:27 +0900 Subject: [PATCH] Exclude exe extension from target assembly Recently installed apps at RPI4 include exe files which are not assemblies. It occurs error while App AOTC. So, exclude exe extension from target assembly. --- NativeLauncher/util/utils.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/NativeLauncher/util/utils.cc b/NativeLauncher/util/utils.cc index ff5c5bd..963cb7f 100644 --- a/NativeLauncher/util/utils.cc +++ b/NativeLauncher/util/utils.cc @@ -52,9 +52,7 @@ static bool iCompare(const std::string& a, int aOffset, const std::string& b, in bool isManagedAssembly(const std::string& fileName) { - return (iCompare(fileName, fileName.size()-4, ".dll", 0, 4) || - iCompare(fileName, fileName.size()-4, ".exe", 0, 4)) && - !isNativeImage(fileName); + return iCompare(fileName, fileName.size()-4, ".dll", 0, 4) && !isNativeImage(fileName); } bool isNativeImage(const std::string& fileName) -- 2.7.4