Mercurial > hg > openttd
changeset 18718:8aea5ed3cf0d draft
(svn r23566) -Fix (r23565): hopefully fix MSVC compilation error
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 17 Dec 2011 12:19:22 +0000 |
parents | e9e4e17e3e19 |
children | c8c8bed6dc88 |
files | src/strgen/strgen.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -930,7 +930,6 @@ /** Make sure the file is closed. */ virtual ~FileWriter() { - printf("close %s %p\n", this->filename, this->fh); /* If we weren't closed an exception was thrown, so remove the termporary file. */ if (fh != NULL) { fclose(this->fh); @@ -1023,7 +1022,7 @@ } else { /* else rename tmp.xxx into filename */ #if defined(WIN32) || defined(WIN64) - unlink(filename); + unlink(this->real_filename); #endif if (rename(this->filename, this->real_filename) == -1) error("rename() failed"); }