/programs/cmm/browser/download_manager.h |
---|
82,7 → 82,7 |
if (downloader.state == STATE_COMPLETED) |
{ |
strcpy(#filepath, #save_to); |
strcat(#filepath, #downloader.url+strrchr(#downloader.url, '/')); |
strcat(#filepath, #save_to+strrchr(#save_to, '/')); |
if (WriteFile(downloader.bufsize, downloader.bufpointer, #filepath)==0) |
sprintf(#notify_message, "%s%s%s",FILE_SAVED_AS,#filepath,"' -Dt"); |
else |
/programs/cmm/browser/http_downloader.h |
---|
6,7 → 6,6 |
}; |
struct DOWNLOADER { |
char url[10000]; |
int data_downloaded_size, data_full_size; |
dword bufpointer, bufsize; |
byte state; |
20,8 → 19,7 |
dword DOWNLOADER::Start(dword _url) |
{ |
state = STATE_IN_PROGRESS; |
strcpy(#url, _url); //need to replace my malloc() |
http_get stdcall (#url, 0, 0, #accept_language); |
http_get stdcall (_url, 0, 0, #accept_language); |
http_transfer = EAX; |
return http_transfer; |
} |