Main: Improve some dialogs.

This commit is contained in:
Guillaume Jacquemin 2022-11-21 09:47:21 +01:00
parent 05611d59b1
commit 453c5391a4
1 changed files with 3 additions and 3 deletions

View File

@ -41,13 +41,13 @@ int main(int argc, char** argv) {
auto mutex_handle = CreateMutexW(nullptr, 0, L"MassBuilderSaveTool"); auto mutex_handle = CreateMutexW(nullptr, 0, L"MassBuilderSaveTool");
if(!mutex_handle) { if(!mutex_handle) {
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error initialising the app", SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error",
"There was an error initialising the mutex.",nullptr); "There was an error initialising the single-instance checker.",nullptr);
return EXIT_FAILURE; return EXIT_FAILURE;
} }
if(GetLastError() == ERROR_ALREADY_EXISTS) { if(GetLastError() == ERROR_ALREADY_EXISTS) {
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error initialising the app", SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error",
"There can be only one running instance of the application.",nullptr); "There can be only one running instance of the application.",nullptr);
return EXIT_FAILURE; return EXIT_FAILURE;
} }