summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r--cpp/src/Ice/Exception.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index 267a83e34b8..d503e480eb2 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -44,7 +44,12 @@ socketErrorToString(int error)
}
else
{
- return IceUtil::wstringToString(
+ //
+ // Don't need to use a wide string converter as the wide string come
+ // from Windows API.
+ //
+ return IceUtil::wnativeToNative(
+ IceUtil::getProcessStringConverter(), 0,
static_cast<Windows::Networking::Sockets::SocketErrorStatus>(error).ToString()->Data());
}
#else