From 5367720c4643affab0dc0ef92553e7e8e7402dd2 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Mon, 26 Apr 2010 12:26:31 +0000 Subject: [PATCH] [SHELL32] - Let explorer open control panel class folder when there is no default action See issue #4916 for more details. svn path=/trunk/; revision=47032 --- reactos/dll/win32/shell32/shfldr_cpanel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/shell32/shfldr_cpanel.c b/reactos/dll/win32/shell32/shfldr_cpanel.c index bf8b632f8eb..a7b92512462 100644 --- a/reactos/dll/win32/shell32/shfldr_cpanel.c +++ b/reactos/dll/win32/shell32/shfldr_cpanel.c @@ -1017,8 +1017,8 @@ ExecuteAppletFromCLSID(LPOLESTR pOleStr) dwSize = sizeof(szCmd); if (RegGetValueW(HKEY_CLASSES_ROOT, szBuffer, NULL, RRF_RT_REG_SZ, &dwType, (PVOID)szCmd, &dwSize) != ERROR_SUCCESS) { - ERR("RegGetValueW failed with %u\n", GetLastError()); - return E_FAIL; + wcscpy(szCmd, L"%SystemRoot%\\Explorer.exe ::"); + wcscat(szCmd, pOleStr); } #if 0 -- 2.17.1