summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-10-29 16:18:32 +0100
committerJose <jose@zeroc.com>2014-10-29 16:18:32 +0100
commit8cd9109248e15204a8558f44cc83c59015494eb3 (patch)
treeff8fa6713bf2f283a837d8f59728f4d35b2f6b5d
parentFixed ICE-5786: fixed Ice communicator destroy to be thread safe (diff)
downloadice-8cd9109248e15204a8558f44cc83c59015494eb3.tar.bz2
ice-8cd9109248e15204a8558f44cc83c59015494eb3.tar.xz
ice-8cd9109248e15204a8558f44cc83c59015494eb3.zip
Fixed (ICE-5794) - slice2java/slice2cs parallel build/concurrent crash
-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)
{
//