[Tizen] fix determin lib name variation logic accepted/tizen/7.0/unified/20230619.172241 accepted/tizen/unified/20230620.022518
authorWoongsuk Cho <ws77.cho@samsung.com>
Thu, 8 Dec 2022 08:37:12 +0000 (17:37 +0900)
committer이형주/MDE Lab(SR)/삼성전자 <leee.lee@samsung.com>
Mon, 19 Jun 2023 04:46:49 +0000 (13:46 +0900)
backport : https://github.com/dotnet/runtime/pull/79370

src/coreclr/vm/nativelibrary.cpp

index 8a894f2..aa33925 100644 (file)
@@ -559,7 +559,7 @@ namespace
             SString::CIterator it = libName.Begin();
             if (libName.Find(it, PLATFORM_SHARED_LIB_SUFFIX_W))
             {
-                it += COUNTOF(PLATFORM_SHARED_LIB_SUFFIX_W);
+                it += (COUNTOF(PLATFORM_SHARED_LIB_SUFFIX_W) - 1);
                 containsSuffix = it == libName.End() || *it == (WCHAR)'.';
             }