Fixed problem in the CFile write_safe conceptamule-svn-r10621
commit96404275ed7855bd23b747fcb9b9a184e293c4da
authorupstream svn <svn@amule.org>
Tue, 4 Oct 2011 19:29:38 +0000 (4 19:29 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Wed, 5 Oct 2011 18:28:02 +0000 (5 18:28 +0000)
tree04ad55adb7ec1737381c0f7f226bdbd8e1497f1d
parent36e621222f9cee6930610b68325aabcdae8c49c0
Fixed problem in the CFile write_safe concept

If there is an exception during writing (like disk full), ~CFile() is still called.
So don't rename and replace the original file when Close() is called from the dtor - this would defeat the whole concept!
As consequence Close() has always to be called for files opened with write_safe.
.svn-revision
src/CFile.cpp
src/CFile.h
src/KnownFileList.cpp