[ros-diffs] [janderwald] 47032: [SHELL32] - Let explorer open control panel class folder when there is no default action See issue #4916 for more details.

janderwald at svn.reactos.org janderwald at svn.reactos.org
Mon Apr 26 14:26:32 CEST 2010


Author: janderwald
Date: Mon Apr 26 14:26:31 2010
New Revision: 47032

URL: http://svn.reactos.org/svn/reactos?rev=47032&view=rev
Log:
[SHELL32]
- Let explorer open control panel class folder when there is no default action

See issue #4916 for more details.

Modified:
    trunk/reactos/dll/win32/shell32/shfldr_cpanel.c

Modified: trunk/reactos/dll/win32/shell32/shfldr_cpanel.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shfldr_cpanel.c?rev=47032&r1=47031&r2=47032&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shfldr_cpanel.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shfldr_cpanel.c [iso-8859-1] Mon Apr 26 14:26:31 2010
@@ -1017,8 +1017,8 @@
     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




More information about the Ros-diffs mailing list