This commit is contained in:
Alessandro Autiero
2024-06-01 16:26:00 +02:00
parent d478650e9b
commit efb508bd0c
243 changed files with 486662 additions and 2948 deletions

View File

@@ -23,10 +23,13 @@ bool IsAlreadyOpen(){
if (hwndExisting != NULL) {
ShowWindow(hwndExisting, SW_RESTORE);
SetForegroundWindow(hwndExisting);
CloseHandle(hMutex);
return true;
} else {
ReleaseMutex(hMutex);
CloseHandle(hMutex);
return false;
}
CloseHandle(hMutex);
return true;
}
return false;
@@ -75,7 +78,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
return EXIT_SUCCESS;
}
if(!IsDebuggerPresent() && IsAlreadyOpen()){
if(IsAlreadyOpen()) {
return EXIT_SUCCESS;
}