Browse Source

libobs: Fix missing return when loading non-OBS DLL

wangshaohui 3 years ago
parent
commit
00e6f6e023
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libobs/obs-module.c

+ 3 - 1
libobs/obs-module.c

@@ -278,9 +278,11 @@ static void load_all_callback(void *param, const struct obs_module_info *info)
 {
 	obs_module_t *module;
 
-	if (!os_is_obs_plugin(info->bin_path))
+	if (!os_is_obs_plugin(info->bin_path)) {
 		blog(LOG_WARNING, "Skipping module '%s', not an OBS plugin",
 		     info->bin_path);
+		return;
+	}
 
 	int code = obs_open_module(&module, info->bin_path, info->data_path);
 	if (code != MODULE_SUCCESS) {