We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a1b25d commit 3f4a05dCopy full SHA for 3f4a05d
src/vcpkg/base/downloads.cpp
@@ -445,8 +445,8 @@ namespace vcpkg
445
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, request_headers.get());
446
curl_easy_setopt(curl, CURLOPT_URL, upload_url.c_str());
447
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
448
- curl_easy_setopt(curl, CURLOPT_READDATA, &fileptr);
449
- curl_easy_setopt(curl, CURLOPT_READFUNCTION, static_cast<void*>(&read_file_callback));
+ curl_easy_setopt(curl, CURLOPT_READDATA, static_cast<void*>(&fileptr));
+ curl_easy_setopt(curl, CURLOPT_READFUNCTION, &read_file_callback);
450
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, static_cast<curl_off_t>(file_size));
451
452
auto result = curl_easy_perform(curl);
0 commit comments