Browse Source

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

UI: Use absolute path for portable mode multi-instance check
Jim 5 years ago
parent
commit
ead2cbc2e1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      UI/platform-windows.cpp

+ 4 - 1
UI/platform-windows.cpp

@@ -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;