diff --git a/src/Win32_Interop/Win32_QFork.cpp b/src/Win32_Interop/Win32_QFork.cpp index e29671c9..cbaf2441 100644 --- a/src/Win32_Interop/Win32_QFork.cpp +++ b/src/Win32_Interop/Win32_QFork.cpp @@ -669,7 +669,7 @@ LONG CALLBACK VectoredHeapMapper(PEXCEPTION_POINTERS info) { // QFork API StartupStatus QForkStartup(int argc, char** argv) { bool foundChildFlag = false; - bool foundSentinelMode = checkForSentinelMode(argc, argv); + int sentinelMode = checkForSentinelMode(argc, argv); HANDLE QForkConrolMemoryMapHandle = NULL; DWORD PPID = 0; __int64 maxheapBytes = -1; @@ -747,7 +747,7 @@ StartupStatus QForkStartup(int argc, char** argv) { } if( maxheapBytes == -1 ) { - if (foundSentinelMode) { + if (sentinelMode == 1) { // Sentinel mode does not need a large heap. This conserves disk space and page file reservation requirements. maxheapBytes = cSentinelHeapSize; } else {