mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Remove duplicate debug symbol paths in Windows
This commit is contained in:
parent
4871fd301a
commit
40ed16637c
|
@ -1197,18 +1197,21 @@ void reset_win32_symbol_paths(void)
|
|||
|
||||
*path_end = 0;
|
||||
|
||||
for (size_t i = 0; i < paths.num; i++) {
|
||||
const char *existing_path = paths.array[i];
|
||||
if (astrcmpi(path.array, existing_path) == 0) {
|
||||
found = true;
|
||||
break;
|
||||
abspath = os_get_abs_path_ptr(path.array);
|
||||
if (abspath) {
|
||||
for (size_t i = 0; i < paths.num; i++) {
|
||||
const char *existing_path = paths.array[i];
|
||||
if (astrcmpi(abspath, existing_path) == 0) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
abspath = os_get_abs_path_ptr(path.array);
|
||||
if (abspath)
|
||||
if (!found) {
|
||||
da_push_back(paths, &abspath);
|
||||
} else {
|
||||
bfree(abspath);
|
||||
}
|
||||
}
|
||||
|
||||
dstr_free(&path);
|
||||
|
|
Loading…
Reference in a new issue