[Cleanup] Changed variable type to match function return value.

checkForSentinelMode() returns an int, not a bool.
This commit is contained in:
Enrico Giordani
2015-07-15 13:07:20 +02:00
parent 0244fa1e44
commit 3506673f9d
+2 -2
View File
@@ -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 {