0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Merge pull request #2373 from WizardCM/multi-portable-warning

UI: Use absolute path for portable mode multi-instance check
This commit is contained in:
Jim 2020-02-05 12:56:56 -08:00 committed by GitHub
commit ead2cbc2e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,10 +300,13 @@ RunOnceMutex GetRunOnceMutex(bool &already_running)
name = "OBSStudioCore";
} else {
char path[500];
char absPath[512];
*path = 0;
*absPath = 0;
GetConfigPath(path, sizeof(path), "");
os_get_abs_path(path, absPath, sizeof(absPath));
name = "OBSStudioPortable";
name += path;
name += absPath;
}
BPtr<wchar_t> wname;