[ros-diffs] [tfaber] 56572: [SHELL32] - Fix some typos from r54845. Fixes crash in shell32:shlexec test.

tfaber at svn.reactos.org tfaber at svn.reactos.org
Sun May 13 10:33:49 UTC 2012


Author: tfaber
Date: Sun May 13 10:33:46 2012
New Revision: 56572

URL: http://svn.reactos.org/svn/reactos?rev=56572&view=rev
Log:
[SHELL32]
- Fix some typos from r54845. Fixes crash in shell32:shlexec test.

Modified:
    trunk/reactos/dll/win32/shell32/shlexec.cpp

Modified: trunk/reactos/dll/win32/shell32/shlexec.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlexec.cpp?rev=56572&r1=56571&r2=56572&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shlexec.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shlexec.cpp [iso-8859-1] Sun May 13 10:33:46 2012
@@ -819,7 +819,7 @@
     {
         /* Toss the leading dot */
         extension++;
-        if (GetProfileStringW(L"extesions", extension, L"", command, sizeof(command) / sizeof(WCHAR)) > 0)
+        if (GetProfileStringW(L"extensions", extension, L"", command, sizeof(command) / sizeof(WCHAR)) > 0)
         {
             if (wcslen(command) != 0)
             {
@@ -887,7 +887,7 @@
     BOOL unicode = !(GetVersion() & 0x80000000);
 
     wcscpy(regkey, key);
-    wcscpy(endkey, L"application");
+    wcscpy(endkey, L"\\application");
     applen = sizeof(app);
     if (RegQueryValueW(HKEY_CLASSES_ROOT, regkey, app, &applen) != ERROR_SUCCESS)
     {




More information about the Ros-diffs mailing list