From 761d6d60601948432411a812b12df02f192b19c2 Mon Sep 17 00:00:00 2001 From: sramani-metro <71630728+sramani-metro@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:56:23 +0530 Subject: [PATCH] Use ServiceAdministrator::LoadLibrary to load any libraries (#1748) Co-authored-by: HaseenaSainul --- Source/plugins/Shell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/plugins/Shell.cpp b/Source/plugins/Shell.cpp index 739a2252d..edcd0c8b5 100644 --- a/Source/plugins/Shell.cpp +++ b/Source/plugins/Shell.cpp @@ -45,9 +45,9 @@ namespace PluginHost string element; while (all_paths->Next(element) == true) { Core::File file(element.c_str()); - if (file.Exists()) - { - Core::Library resource(element.c_str()); + if (file.Exists()) { + + Core::Library resource = Core::ServiceAdministrator::Instance().LoadLibrary(element.c_str()); if (resource.IsLoaded()) result = Core::ServiceAdministrator::Instance().Instantiate( resource,