mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: fix download_win.v
This commit is contained in:
parent
8058bf3750
commit
2c7e0c0257
@ -8,8 +8,9 @@ fn download_file_with_progress(url, out string, cb, cb_finished voidptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn download_file(url, out string) {
|
fn download_file(url, out string) {
|
||||||
# HRESULT res = URLDownloadToFile(NULL, url.str, out.str, 0, NULL);
|
C.URLDownloadToFile(0, url.str, out.str, 0, 0)
|
||||||
# if(res == S_OK) {
|
/*
|
||||||
|
if (res == S_OK) {
|
||||||
println('Download Ok')
|
println('Download Ok')
|
||||||
# } else if(res == E_OUTOFMEMORY) {
|
# } else if(res == E_OUTOFMEMORY) {
|
||||||
println('Buffer length invalid, or insufficient memory')
|
println('Buffer length invalid, or insufficient memory')
|
||||||
@ -18,5 +19,6 @@ fn download_file(url, out string) {
|
|||||||
# } else {
|
# } else {
|
||||||
# printf("Download error: %d\n", res);
|
# printf("Download error: %d\n", res);
|
||||||
# }
|
# }
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user