From 4d6569f0b22cc5471ac0b0613f9cdb4418e1a784 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 18 Dec 2007 23:01:14 +0000 Subject: [PATCH] - convert buffer back if pidle simple - fixes error message when opening control panel in explorer and displays the name for the folder option cpl (thus executing is not yet implemented) svn path=/trunk/; revision=31311 --- reactos/dll/win32/shell32/cpanelfolder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/cpanelfolder.c b/reactos/dll/win32/shell32/cpanelfolder.c index 1bb91121032..a5cb0328d85 100644 --- a/reactos/dll/win32/shell32/cpanelfolder.c +++ b/reactos/dll/win32/shell32/cpanelfolder.c @@ -691,7 +691,12 @@ static HRESULT WINAPI ISF_ControlPanel_fnGetDisplayNameOf(IShellFolder2 * iface, return E_OUTOFMEMORY; if (!WideCharToMultiByte(CP_ACP, 0, wszPath, -1, szPath, MAX_PATH, NULL, NULL)) wszPath[0] = '\0'; - } + } else { + if (bSimplePidl) { + if (!WideCharToMultiByte(CP_ACP, 0, wszPath, -1, szPath, MAX_PATH, NULL, NULL)) + wszPath[0] = '\0'; + } + } } strRet->uType = STRRET_CSTR;