From 9eddbde5aca78876947a1bdca3b217153325309b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 13 Feb 2006 22:58:23 +0000 Subject: [PATCH] fix busy loop if child exits without closing the child properly --- stepmania/src/archutils/Win32/Crash.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/archutils/Win32/Crash.cpp b/stepmania/src/archutils/Win32/Crash.cpp index 3ea859ba87..147608dd66 100644 --- a/stepmania/src/archutils/Win32/Crash.cpp +++ b/stepmania/src/archutils/Win32/Crash.cpp @@ -252,8 +252,7 @@ void RunChild() { int iCmd; DWORD iActual; - ReadFile( hFromStdout, &iCmd, sizeof(iCmd), &iActual, NULL ); - if( iCmd == 0 ) + if( !ReadFile(hFromStdout, &iCmd, sizeof(iCmd), &iActual, NULL) ) break; /* Ugly: the new process can't execute GetModuleFileName on this process,