Configuration: avoid a deadlock.

This commit is contained in:
Guillaume Jacquemin 2024-04-14 18:30:39 +02:00
parent 028d991b74
commit b9fe38782d
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A
2 changed files with 4 additions and 5 deletions

View file

@ -25,7 +25,6 @@
#include <shlobj.h>
#include "../Logger/Logger.h"
#include "../Utilities/Temp.h"
#include "Configuration.h"
@ -169,9 +168,6 @@ Configuration::Configuration() {
return;
}
}
else {
Utilities::emptyTempDir();
}
_valid = true;
}

View file

@ -22,9 +22,10 @@
#include <synchapi.h>
#include <winerror.h>
#include "Application/Application.h"
#include "Configuration/Configuration.h"
#include "Logger/MagnumLogBuffer.h"
#include "Application/Application.h"
#include "Utilities/Temp.h"
int main(int argc, char** argv) {
MagnumLogBuffer debug_intercept_buffer{EntryType::Info};
@ -48,6 +49,8 @@ int main(int argc, char** argv) {
return EXIT_FAILURE;
}
mbst::Utilities::emptyTempDir();
auto str = setlocale(LC_ALL, ".utf-8");
if(str) {
Containers::StringView locale{str};