shell: fix ShellExecute

Huw D M Davies h.davies1 at physics.ox.ac.uk
Wed Mar 2 16:48:34 CST 2005


There's actually a bug in our RegOpenKey implementation (test to
follow) but there's no reason to have a leading bash here so let's
remove it.

Huw Davies <huw at codeweavers.com>
Don't prepend '\\' to the subkey name

Index: dlls/shell32/classes.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/classes.c,v
retrieving revision 1.35
diff -u -p -r1.35 classes.c
--- dlls/shell32/classes.c	23 Jul 2004 23:02:09 -0000	1.35
+++ dlls/shell32/classes.c	2 Mar 2005 22:44:29 -0000
@@ -116,7 +116,7 @@ BOOL HCR_MapTypeToValueA(LPCSTR szExtens
 
 BOOL HCR_GetExecuteCommandW( HKEY hkeyClass, LPCWSTR szClass, LPCWSTR szVerb, LPWSTR szDest, DWORD len )
 {
-        static const WCHAR swShell[] = {'\\','s','h','e','l','l','\\',0};
+        static const WCHAR swShell[] = {'s','h','e','l','l','\\',0};
         static const WCHAR swCommand[] = {'\\','c','o','m','m','a','n','d',0};
 	BOOL	ret = FALSE;
 



More information about the wine-patches mailing list