Define only one crashCatcherInstall function

This commit is contained in:
elsid
2024-01-19 21:00:32 +01:00
parent fc12728d25
commit 55501a02c0
3 changed files with 7 additions and 16 deletions
+1 -2
View File
@@ -352,8 +352,7 @@ int wrapApplication(int (*innerApplication)(int argc, char* argv[]), int argc, c
#else
const std::string crashLogName = Misc::StringUtils::lowerCase(appName) + "-crash.log";
// install the crash handler as soon as possible.
crashCatcherInstall(
argc, argv, Files::pathToUnicodeString(std::filesystem::temp_directory_path() / crashLogName));
crashCatcherInstall(argc, argv, std::filesystem::temp_directory_path() / crashLogName);
#endif
ret = innerApplication(argc, argv);
}