Small code cleanup.

This commit is contained in:
Mr_Goldberg 2019-12-03 13:39:17 -05:00
parent 1125f33675
commit 10cd4cea80
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 3 additions and 7 deletions

View file

@ -100,11 +100,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
ExitProcess(NULL);
}
if (ExeFile[0] != NULL && CreateProcessA(ExeFile, ExeCommandLine, NULL, NULL, TRUE, CREATE_SUSPENDED, NULL, ExeRunDir, &info, &processInfo))
{
}
else
if (!ExeFile[0] || !CreateProcessA(ExeFile, ExeCommandLine, NULL, NULL, TRUE, CREATE_SUSPENDED, NULL, ExeRunDir, &info, &processInfo))
{
MessageBoxA(NULL, "Unable to load the requested EXE file.", "ColdClientLoader", MB_ICONERROR);
ExitProcess(NULL);