mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Fix #8434: Crash if curl_easy_init fails
This commit is contained in:
@@ -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