daisywheel
7th June 2007 10:39 UTC
inetc::get bug?
I do next call
inetc::get "www.somesite.com/File.txt" $TEMP\File.txt
in case File.txt exists in $TEMP folder it's rewritten BUT
only the part of data not more then in file on server actually rewritten.
Example:
File.txt in $TEMP
AAAAAAAAAAAAAAAAAAA
File.txt on www.somesite.com
BBBBBBB
Acctual Result:
File.txt in $TEMP after call mentioned above:
BBBBBBBAAAAAAAAAAAA
Expected result:
BBBBBBB
Is it bug?
Afrow UK
7th June 2007 12:50 UTC
Looks like the plugin is using append mode. For now you should delete the file first.
Stu
Backland
7th June 2007 13:54 UTC
yes, you can always create a new temp file at runtime and place your contents in that.
daisywheel
7th June 2007 14:10 UTC
How could I report it? Do we have any bug tracking system?
Takhir
7th June 2007 14:17 UTC
Yes, this is a bug, I'll fix it soon. If you can rebuild dll, it should be (inetc.cpp line 587 ?)
if((localFile = CreateFile(fn, fput ? GENERIC_READ : GENERIC_WRITE, FILE_SHARE_READ,
NULL, fput ? OPEN_EXISTING : CREATE_ALWAYS, 0, NULL)) != NULL)
I had im mind direct download (not to tmp file). New tmp file should work as well. BTW inetc deletes local file if download failed.
Thanks.