Define only one crashCatcherInstall function

This commit is contained in:
elsid 2024-01-19 14:09:02 +01:00
parent fc12728d25
commit 55501a02c0
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
3 changed files with 7 additions and 16 deletions

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);
}