summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index 25eb99c26c7..816417d1fc4 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -229,7 +229,7 @@ Slice::Preprocessor::preprocess(bool keepComments, const string& extraArgs)
// First try to open temporay file in tmp directory.
//
#ifdef _WIN32
- wchar_t* name = _wtempnam(NULL, L".preprocess");
+ wchar_t* name = _wtempnam(0, IceUtil::stringToWstring(".preprocess." + IceUtil::generateUUID()).c_str());
if(name)
{
//