Old 7th June 2007, 09:39   #1
daisywheel
Junior Member
 
Join Date: May 2007
Posts: 40
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?
daisywheel is offline   Reply With Quote
Old 7th June 2007, 11:50   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Looks like the plugin is using append mode. For now you should delete the file first.

Stu
Afrow UK is offline   Reply With Quote
Old 7th June 2007, 12:54   #3
Backland
Senior Member
 
Join Date: Sep 2006
Posts: 150
yes, you can always create a new temp file at runtime and place your contents in that.
Backland is offline   Reply With Quote
Old 7th June 2007, 13:10   #4
daisywheel
Junior Member
 
Join Date: May 2007
Posts: 40
How could I report it? Do we have any bug tracking system?
daisywheel is offline   Reply With Quote
Old 7th June 2007, 13:17   #5
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Yes, this is a bug, I'll fix it soon. If you can rebuild dll, it should be (inetc.cpp line 587 ?)
code:
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.
Takhir is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump