diff --git a/core/systems/LibrarySys.cpp b/core/systems/LibrarySys.cpp index ca9e37eeb..28d2bbe9e 100644 --- a/core/systems/LibrarySys.cpp +++ b/core/systems/LibrarySys.cpp @@ -320,6 +320,7 @@ ILibrary *LibrarySystem::OpenLibrary(const char *path, char *error, size_t maxle if (lib == NULL) { GetLoaderError(error, maxlength); + return NULL; } return new CLibrary(lib);