From 1223bf35c29b4cae392410995ede8c69f9392d7b Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Mon, 31 Aug 2026 21:49:56 -0500 Subject: [PATCH] Fix license compliance and fix things up, add reverse proxy, fix some security flaws with HttpUtils --- src/Platform/Process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Platform/Process.cpp b/src/Platform/Process.cpp index 1c17894..d872fb8 100644 --- a/src/Platform/Process.cpp +++ b/src/Platform/Process.cpp @@ -705,7 +705,7 @@ void ShellFileOrUrl(std::string fileOrUrl) { auto result = ShellExecuteW(NULL, L"open", (LPCWSTR)wname.c_str(), NULL, NULL, SW_SHOWNORMAL); if ((INT_PTR)result <= 32) { - switch ((int)result) { + switch ((INT_PTR)result) { case 0: throw std::runtime_error( "The operating system is out of memory or resources."); @@ -745,7 +745,7 @@ void ShellFileOrUrl(std::string fileOrUrl) { "(SE_ERR_DLLNOTFOUND)."); default: throw std::runtime_error("Unknown error: " + - std::to_string((int)result)); + std::to_string((intptr_t)result)); } }