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, 1 insertions, 5 deletions
diff --git a/cpp/src/IceGrid/IceGridNode.cpp b/cpp/src/IceGrid/IceGridNode.cpp
index 68ef989fb45..bc7683bb6af 100644
--- a/cpp/src/IceGrid/IceGridNode.cpp
+++ b/cpp/src/IceGrid/IceGridNode.cpp
@@ -126,11 +126,7 @@ private:
void
setNoIndexingAttribute(const string& 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);
+ wstring path = IceUtil::stringToWstring(pa);
DWORD attrs = GetFileAttributesW(path.c_str());
if(attrs == INVALID_FILE_ATTRIBUTES)
{