From 2e5e68d50dd7c75d365b4db93b6b0ab345828129 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 9 May 2024 21:53:12 +0800 Subject: [PATCH] fix: compile error --- tools/consolepauser/main.windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/consolepauser/main.windows.cpp b/tools/consolepauser/main.windows.cpp index 5022831d..0eb8814e 100644 --- a/tools/consolepauser/main.windows.cpp +++ b/tools/consolepauser/main.windows.cpp @@ -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