Trk: Checking errorCode of CreateProcess message.

Reviewed-by: con
This commit is contained in:
Robert Loehning
2009-09-28 10:57:03 +02:00
parent 23de8e9dde
commit 9839d0a8b3
6 changed files with 14 additions and 9 deletions

View File

@@ -621,8 +621,7 @@ int WinReaderThread::tryRead()
void WinReaderThread::run()
{
m_handles[FileHandle] = m_context->readOverlapped.hEvent;
int readResult;
while ( (readResult = tryRead()) == 0) ;
while ( tryRead() == 0) ;
}
void WinReaderThread::terminate()
@@ -736,9 +735,8 @@ int UnixReaderThread::tryRead()
void UnixReaderThread::run()
{
int readResult;
// Read loop
while ( (readResult = tryRead()) == 0) ;
while ( tryRead() == 0) ;
}
void UnixReaderThread::terminate()