diff --git a/Rack.res b/Rack.res new file mode 100644 index 00000000..f5ee5d56 Binary files /dev/null and b/Rack.res differ diff --git a/src/plugin.cpp b/src/plugin.cpp index ac560bc7..ae278e6c 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -218,7 +218,7 @@ static void pluginRefreshPlugin(json_t *pluginJ) { // Find slug in plugins list for (Plugin *p : gPlugins) { if (p->slug == slug) { - // return; + return; } } diff --git a/src/util/request.cpp b/src/util/request.cpp index 5e859f36..24e01f49 100644 --- a/src/util/request.cpp +++ b/src/util/request.cpp @@ -123,7 +123,9 @@ bool requestDownload(std::string url, std::string filename, float *progress) { if (!curl) return false; - FILE *file = fopen(filename.c_str(), "w"); + FILE *file = fopen(filename.c_str(), "wb"); + if (!file) + return false; curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_VERBOSE, false);