1
0
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:
Ted John
2018-12-14 17:10:34 +00:00
parent e2e2d4b7bf
commit fecf4ac3e8
2 changed files with 2 additions and 1 deletions

View File

@@ -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.

View File

@@ -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;