summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ImplicitContextI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-10-24 14:36:33 +0000
committerBernard Normier <bernard@zeroc.com>2006-10-24 14:36:33 +0000
commitde2699450f2b8af58feb52a1ffa362fbab14f5fe (patch)
treef20385bab2cbfafee6e3de40f4a5252de8777794 /cpp/src/Ice/ImplicitContextI.cpp
parentreleaseObject now returns only once the session activation server is (diff)
downloadice-de2699450f2b8af58feb52a1ffa362fbab14f5fe.tar.bz2
ice-de2699450f2b8af58feb52a1ffa362fbab14f5fe.tar.xz
ice-de2699450f2b8af58feb52a1ffa362fbab14f5fe.zip
Windows fixes
Diffstat (limited to 'cpp/src/Ice/ImplicitContextI.cpp')
-rw-r--r--cpp/src/Ice/ImplicitContextI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/ImplicitContextI.cpp b/cpp/src/Ice/ImplicitContextI.cpp
index b6b8294210b..817350cf976 100644
--- a/cpp/src/Ice/ImplicitContextI.cpp
+++ b/cpp/src/Ice/ImplicitContextI.cpp
@@ -364,7 +364,7 @@ PerThreadImplicitContext::getThreadContext(bool allocate) const
val = new std::vector<Context*>(_index + 1);
#ifdef _WIN32
- if(TlsSetValue(_key, val) != 0)
+ if(TlsSetValue(_key, val) == 0)
{
throw IceUtil::ThreadSyscallException(__FILE__, __LINE__, GetLastError());
}
@@ -424,7 +424,7 @@ PerThreadImplicitContext::clearThreadContext() const
{
delete val;
#ifdef _WIN32
- if(!TlsSetValue(_key, 0))
+ if(TlsSetValue(_key, 0) == 0)
{
IceUtil::ThreadSyscallException(__FILE__, __LINE__, GetLastError());
}