(trunk libT) #3975 "tr_bencToFile() contains unnecessary calls to stat() and unlink...
authorJordan Lee <jordan@transmissionbt.com>
Sun, 6 Feb 2011 18:56:44 +0000 (18:56 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 6 Feb 2011 18:56:44 +0000 (18:56 +0000)
commitce08e00e2e7bc8abd455c80e6150b97eb82ee4b1
treea1bc1c05265533d744cf5c54b6a5c33e0d7c1fea
parent24b9dc7dc2de64914c222136188fb64f2c6babcc
(trunk libT) #3975 "tr_bencToFile() contains unnecessary calls to stat() and unlink()" -- fixed for win32.

remove() doesn't have the same behavior on Windows. On that platform, we should use MoveFileEx( oldpath, newpath, MOVEFILE_REPLACE_EXISTING )." Thanks to rb07 for testing & confirming the fix.
libtransmission/bencode.c