mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-09-30 08:44:13 +00:00
Fix license compliance and fix things up, add reverse proxy, fix some security flaws with HttpUtils
This commit is contained in:
@@ -705,7 +705,7 @@ void ShellFileOrUrl(std::string fileOrUrl) {
|
|||||||
auto result = ShellExecuteW(NULL, L"open", (LPCWSTR)wname.c_str(), NULL,
|
auto result = ShellExecuteW(NULL, L"open", (LPCWSTR)wname.c_str(), NULL,
|
||||||
NULL, SW_SHOWNORMAL);
|
NULL, SW_SHOWNORMAL);
|
||||||
if ((INT_PTR)result <= 32) {
|
if ((INT_PTR)result <= 32) {
|
||||||
switch ((int)result) {
|
switch ((INT_PTR)result) {
|
||||||
case 0:
|
case 0:
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"The operating system is out of memory or resources.");
|
"The operating system is out of memory or resources.");
|
||||||
@@ -745,7 +745,7 @@ void ShellFileOrUrl(std::string fileOrUrl) {
|
|||||||
"(SE_ERR_DLLNOTFOUND).");
|
"(SE_ERR_DLLNOTFOUND).");
|
||||||
default:
|
default:
|
||||||
throw std::runtime_error("Unknown error: " +
|
throw std::runtime_error("Unknown error: " +
|
||||||
std::to_string((int)result));
|
std::to_string((intptr_t)result));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user