eliminated SHBindToParent()

svn path=/trunk/; revision=7427
This commit is contained in:
Martin Fuchs
2004-01-03 21:05:23 +00:00
parent 4fa9d79e7f
commit 87a2a6c778
@@ -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);