Exclude exe extension from target assembly accepted/tizen/unified/20221014.123806
authorWoongsuk Cho <ws77.cho@samsung.com>
Fri, 7 Oct 2022 03:13:27 +0000 (12:13 +0900)
committer조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Fri, 14 Oct 2022 03:47:16 +0000 (12:47 +0900)
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

index ff5c5bd..963cb7f 100644 (file)
@@ -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)