summaryrefslogtreecommitdiff
path: root/src/strgen/strgen.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-17 12:19:22 +0000
committerrubidium <rubidium@openttd.org>2011-12-17 12:19:22 +0000
commit5d3779115773e7e6d3712355cce924a151188cc8 (patch)
tree274b1148fe2f3ae8393642f6ef1aea96f702f8d0 /src/strgen/strgen.cpp
parent15906ca8744013ee114a9ca554b5e6835867ffc7 (diff)
downloadopenttd-5d3779115773e7e6d3712355cce924a151188cc8.tar.xz
(svn r23566) -Fix (r23565): hopefully fix MSVC compilation error
Diffstat (limited to 'src/strgen/strgen.cpp')
-rw-r--r--src/strgen/strgen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index c87d63280..6bbee7c7a 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -930,7 +930,6 @@ struct FileWriter {
/** 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 @@ struct HeaderFileWriter : HeaderWriter, FileWriter {
} 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");
}