forked from rosebudai/OpenRCT2-Web
Fix #8434: Crash if curl_easy_init fails
This commit is contained in:
1 parent
e2e2d4b7bf
commit
fecf4ac3e8
2 files changed
+2
-1
No files matched your search
@@ -38,6 +38,7 @@
|
||||
- Fix: [#8204] Crash when tile element has no surface elements.
|
||||
- Fix: [#8358] Infinite loop when changing vehicle count on stopped ride.
|
||||
- Fix: [#8433] Crash if master server response is not valid JSON.
|
||||
- Fix: [#8434] Crash if curl_easy_init fails.
|
||||
- Improved: [#2940] Allow mouse-dragging to set patrol area (Singleplayer only).
|
||||
- Improved: [#7730] Draw extreme vertical and lateral Gs red in the ride window's graph tab.
|
||||
- Improved: [#7930] Automatically create folders for custom content.
|
||||
|
||||
@@ -98,7 +98,7 @@ namespace OpenRCT2::Network::Http
|
||||
std::shared_ptr<void> _(nullptr, [curl](...) { curl_easy_cleanup(curl); });
|
||||
|
||||
if (!curl)
|
||||
std::runtime_error("Failed to initialize curl");
|
||||
throw std::runtime_error("Failed to initialize curl");
|
||||
|
||||
Response res;
|
||||
WriteThis wt;
|
||||
|
||||
Reference in new issue
Block a user