From 87a2a6c778e1fc1812563e82ce8bc42be8fccfc6 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 3 Jan 2004 21:05:23 +0000 Subject: [PATCH] eliminated SHBindToParent() svn path=/trunk/; revision=7427 --- reactos/subsys/system/explorer/shell/entries.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/subsys/system/explorer/shell/entries.cpp b/reactos/subsys/system/explorer/shell/entries.cpp index 95be939529f..55e6af338a2 100644 --- a/reactos/subsys/system/explorer/shell/entries.cpp +++ b/reactos/subsys/system/explorer/shell/entries.cpp @@ -343,8 +343,12 @@ HRESULT Entry::GetUIObjectOf(HWND hWnd, REFIID riid, LPVOID* ppvOut) ShellPath shell_path(path); ShellFolder shell_folder(shell_path); +#ifdef UNICODE + LPWSTR wname = _data.cFileName; +#else WCHAR wname[MAX_PATH]; MultiByteToWideChar(CP_ACP, 0, _data.cFileName, -1, wname, MAX_PATH); +#endif LPITEMIDLIST pidl_last = NULL; HRESULT hr = shell_folder->ParseDisplayName(hWnd, NULL, wname, NULL, &pidl_last, NULL);