[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
This commit is contained in:
Johannes Anderwald 2010-04-26 12:26:31 +00:00
parent dd0a9f5d5f
commit 5367720c46

View file

@ -1017,8 +1017,8 @@ ExecuteAppletFromCLSID(LPOLESTR pOleStr)
dwSize = sizeof(szCmd); dwSize = sizeof(szCmd);
if (RegGetValueW(HKEY_CLASSES_ROOT, szBuffer, NULL, RRF_RT_REG_SZ, &dwType, (PVOID)szCmd, &dwSize) != ERROR_SUCCESS) if (RegGetValueW(HKEY_CLASSES_ROOT, szBuffer, NULL, RRF_RT_REG_SZ, &dwType, (PVOID)szCmd, &dwSize) != ERROR_SUCCESS)
{ {
ERR("RegGetValueW failed with %u\n", GetLastError()); wcscpy(szCmd, L"%SystemRoot%\\Explorer.exe ::");
return E_FAIL; wcscat(szCmd, pOleStr);
} }
#if 0 #if 0