fix: compile error

This commit is contained in:
Roy Qu 2024-05-09 21:53:12 +08:00
parent 891d29f011
commit 2e5e68d50d
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ DWORD ExecuteCommand(string& command,bool reInp, LONGLONG &peakMemory, LONGLONG
WINBOOL bSuccess = AssignProcessToJobObject( hJob, pi.hProcess );
if ( bSuccess == FALSE ) {
printf( "AssignProcessToJobObject failed: error %lu\n", GetLastError() );
PauseExit(EXIT_ASSGIN_PROCESS_JOB_FAILED);
PauseExit(EXIT_ASSGIN_PROCESS_JOB_FAILED,reInp);
}
WaitForSingleObject(pi.hProcess, INFINITE); // Wait for it to finish