Rev 6001 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6001 | Rev 6005 | ||
---|---|---|---|
Line 80... | Line 80... | ||
80 | DrawDownloading(); |
80 | DrawDownloading(); |
81 | } |
81 | } |
82 | if (downloader.state == STATE_COMPLETED) |
82 | if (downloader.state == STATE_COMPLETED) |
83 | { |
83 | { |
84 | strcpy(#filepath, #save_to); |
84 | strcpy(#filepath, #save_to); |
85 | strcat(#filepath, #downloader.url+strrchr(#downloader.url, '/')); |
85 | strcat(#filepath, #save_to+strrchr(#save_to, '/')); |
86 | if (WriteFile(downloader.bufsize, downloader.bufpointer, #filepath)==0) |
86 | if (WriteFile(downloader.bufsize, downloader.bufpointer, #filepath)==0) |
87 | sprintf(#notify_message, "%s%s%s",FILE_SAVED_AS,#filepath,"' -Dt"); |
87 | sprintf(#notify_message, "%s%s%s",FILE_SAVED_AS,#filepath,"' -Dt"); |
88 | else |
88 | else |
89 | sprintf(#notify_message, "%s%s%s","'Download manager\nError! Can\96t save file as ",#filepath,"' -Et"); |
89 | sprintf(#notify_message, "%s%s%s","'Download manager\nError! Can\96t save file as ",#filepath,"' -Et"); |
90 | notify(#notify_message); |
90 | notify(#notify_message); |