Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdbe7ca3 authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Fix plugin loading

Change-Id: I3572f8bc1c90c5f0697054497bde52e4cbc4e71e
related-to-bug:32815560
parent 96966995
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class PluginLoader {
            while ((pEntry = readdir(pDir))) {
                String8 file(pEntry->d_name);
                if (file.getPathExtension() == ".so") {
                    String8 path = pluginDir + pEntry->d_name;
                    String8 path = pluginDir + "/" + pEntry->d_name;
                    T *plugin = loadOne(path, entry);
                    if (plugin) {
                        factories.push(plugin);
@@ -77,7 +77,8 @@ class PluginLoader {
                libraries.push(library);
                return createFactoryFunc();
            } else {
                ALOGE("Failed to create plugin factory from %s", path);
                ALOGE("Failed to create plugin factory from %s at entry %s: %s",
                        path, entry, library->lastError());
            }
        }
        return NULL;