summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/IceGridNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/IceGridNode.cpp')
-rw-r--r--cpp/src/IceGrid/IceGridNode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/IceGridNode.cpp b/cpp/src/IceGrid/IceGridNode.cpp
index bc7683bb6af..68ef989fb45 100644
--- a/cpp/src/IceGrid/IceGridNode.cpp
+++ b/cpp/src/IceGrid/IceGridNode.cpp
@@ -126,7 +126,11 @@ private:
void
setNoIndexingAttribute(const string& pa)
{
- wstring path = IceUtil::stringToWstring(pa);
+ //
+ // We don't need to pass a wide string converter the wide
+ // string is passed to Windows API.
+ //
+ wstring path = IceUtil::nativeToWnative(IceUtil::getProcessStringConverter(), 0, pa);
DWORD attrs = GetFileAttributesW(path.c_str());
if(attrs == INVALID_FILE_ATTRIBUTES)
{