From a5c13d4469defdbab56fe4b8bc48e46113894ada Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 19 Dec 2013 06:56:30 -0800 Subject: [PATCH] windows compilation fix --- src/libcore/fstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/fstream.cpp b/src/libcore/fstream.cpp index 7d91ed9b..a4a911e1 100644 --- a/src/libcore/fstream.cpp +++ b/src/libcore/fstream.cpp @@ -381,7 +381,7 @@ ref FileStream::createTemporary() { if (ret == 0 || ret > MAX_PATH) Log(EError, "GetTempPath failed(): %s", lastErrorText().c_str()); - ret = GetTempFileNameW(tempPath, TEXT("mitsuba"), 0, filename); + ret = GetTempFileNameW(tempPath, L"mitsuba", 0, filename); if (ret == 0) Log(EError, "GetTempFileName failed(): %s", lastErrorText().c_str()); @@ -390,7 +390,7 @@ ref FileStream::createTemporary() { if (result->d->file == INVALID_HANDLE_VALUE) Log(EError, "Error while trying to create temporary file \"%s\": %s", - d->path.string().c_str(), lastErrorText().c_str()); + lastErrorText().c_str()); result->d->path = fs::path(filename); #else