winws: do not close handle twice

This commit is contained in:
bol-van 2024-06-22 21:12:55 +03:00
parent fb7fe79022
commit f95be5c603

View File

@ -1609,7 +1609,7 @@ int main(int argc, char **argv)
hMutexArg = CreateMutexA(NULL,TRUE,mutex_name);
if (hMutexArg && GetLastError()==ERROR_ALREADY_EXISTS)
{
CloseHandle(hMutexArg);
CloseHandle(hMutexArg); hMutexArg = NULL;
printf("A copy of winws is already running with the same filter\n");
goto exiterr;
}