Skip to content

Commit 3f4a05d

Browse files
committed
PR comments WIP 3
1 parent 5a1b25d commit 3f4a05d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vcpkg/base/downloads.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ namespace vcpkg
445445
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, request_headers.get());
446446
curl_easy_setopt(curl, CURLOPT_URL, upload_url.c_str());
447447
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));
448+
curl_easy_setopt(curl, CURLOPT_READDATA, static_cast<void*>(&fileptr));
449+
curl_easy_setopt(curl, CURLOPT_READFUNCTION, &read_file_callback);
450450
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, static_cast<curl_off_t>(file_size));
451451

452452
auto result = curl_easy_perform(curl);

0 commit comments

Comments
 (0)