Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   inetc::get bug? (http://forums.winamp.com/showthread.php?t=272440)

daisywheel 7th June 2007 09:39

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 11:50

Looks like the plugin is using append mode. For now you should delete the file first.

Stu

Backland 7th June 2007 12:54

yes, you can always create a new temp file at runtime and place your contents in that.

daisywheel 7th June 2007 13:10

How could I report it? Do we have any bug tracking system?

Takhir 7th June 2007 13:17

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.


All times are GMT. The time now is 17:39.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.