style fixes

This commit is contained in:
Günter Obiltschnig 2014-08-14 19:21:20 +02:00
parent d0ebf0bc76
commit d14be5730a
3 changed files with 30 additions and 30 deletions

View File

@ -258,26 +258,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
{
BOOL fRC = true;
DWORD exit_code;
bool result = true;
DWORD exitCode;
GetExitCodeProcess(handle.process(), &exit_code);
if (exit_code != STILL_ACTIVE) fRC = false;
GetExitCodeProcess(handle.process(), &exitCode);
if (exitCode != STILL_ACTIVE) result = false;
return fRC;
return result;
}
bool ProcessImpl::isRunningImpl(PIDImpl pid)
{
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
BOOL fRC = true;
DWORD exit_code;
bool result = true;
DWORD exitCode;
GetExitCodeProcess(hProc, &exit_code);
if (exit_code != STILL_ACTIVE) fRC = false;
GetExitCodeProcess(hProc, &exitCode);
if (exitCode != STILL_ACTIVE) result = false;
return fRC;
return result;
}

View File

@ -264,26 +264,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
{
BOOL fRC = true;
DWORD exit_code;
bool result = true;
DWORD exitCode;
GetExitCodeProcess(handle.process(), &exit_code);
if (exit_code != STILL_ACTIVE) fRC = false;
GetExitCodeProcess(handle.process(), &exitCode);
if (exitCode != STILL_ACTIVE) result = false;
return fRC;
return result;
}
bool ProcessImpl::isRunningImpl(PIDImpl pid)
{
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
BOOL fRC = true;
DWORD exit_code;
bool result = true;
DWORD exitCode;
GetExitCodeProcess(hProc, &exit_code);
if (exit_code != STILL_ACTIVE) fRC = false;
GetExitCodeProcess(hProc, &exitCode);
if (exitCode != STILL_ACTIVE) result = false;
return fRC;
return result;
}

View File

@ -189,26 +189,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
{
BOOL fRC = true;
DWORD exit_code;
bool result = true;
DWORD exitCode;
GetExitCodeProcess(handle.process(), &exit_code);
if (exit_code != STILL_ACTIVE) fRC = false;
GetExitCodeProcess(handle.process(), &exitCode);
if (exitCode != STILL_ACTIVE) result = false;
return fRC;
return result;
}
bool ProcessImpl::isRunningImpl(PIDImpl pid)
{
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
BOOL fRC = true;
DWORD exit_code;
bool result = true;
DWORD exitCode;
GetExitCodeProcess(hProc, &exit_code);
if (exit_code != STILL_ACTIVE) fRC = false;
GetExitCodeProcess(hProc, &exitCode);
if (exitCode != STILL_ACTIVE) result = false;
return fRC;
return result;
}