libobs: Don't search '.' and '..' dirs for modules
On windows doing os_glob will also include '.' and '..', exclude these when searching for modules.
This commit is contained in:
parent
bbd48c7bf2
commit
7e3efa86e5
@ -253,6 +253,9 @@ static void process_found_module(struct obs_module_path *omp,
|
||||
char *parsed_data_dir;
|
||||
bool bin_found = true;
|
||||
|
||||
if (strcmp(path, ".") == 0 || strcmp(path, "..") == 0)
|
||||
return;
|
||||
|
||||
file = strrchr(path, '/');
|
||||
file = file ? (file + 1) : path;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user