From 5de61ecb4d2ec8691206f45f2d2bb0459914f3ec Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 30 Nov 2020 20:42:16 +0100 Subject: [PATCH] Removed two ambiguous NULL values. --- es-app/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index a9b5bde0a..c62860317 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -97,13 +97,12 @@ win64ConsoleType outputToConsole(bool allocConsole) // If we are attached to the parent console or we have opened a new console window, // then redirect stdin, stdout and stderr accordingly. if (consoleType == PARENT_CONSOLE || consoleType == ALLOCATED_CONSOLE) { - FILE* fp = nullptr; freopen_s(&fp, "CONIN$", "rb", stdin); freopen_s(&fp, "CONOUT$", "wb", stdout); - setvbuf(stdout, NULL, _IONBF, 0); + setvbuf(stdout, 0, _IONBF, 0); freopen_s(&fp, "CONOUT$", "wb", stderr); - setvbuf(stderr, NULL, _IONBF, 0); + setvbuf(stderr, 0, _IONBF, 0); // Point the standard streams to the console. std::ios::sync_with_stdio(true);