add check for fNonExistFile pointer

This commit is contained in:
Alexander Frick
2025-12-04 20:28:54 -06:00
parent f9c910d094
commit 67c5770e12
+3
View File
@@ -1065,6 +1065,9 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
fNonExistFile = freopen("CONOUT$", "w", stdout); // Standard error
fNonExistFile = freopen("CONOUT$", "w", stderr); // Standard out
#endif // __MINGW32__
if (!fNonExistFile) {
return 1;
}
LPWSTR cmdLine = GetCommandLineW();
if (cmdLine == nullptr || cmdLine == NULL) {