projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix double-clicking control panel items
[reactos.git]
/
reactos
/
lib
/
shell32
/
shlexec.c
diff --git
a/reactos/lib/shell32/shlexec.c
b/reactos/lib/shell32/shlexec.c
index
4159e26
..
65c0d50
100644
(file)
--- a/
reactos/lib/shell32/shlexec.c
+++ b/
reactos/lib/shell32/shlexec.c
@@
-1263,9
+1263,10
@@
BOOL WINAPI ShellExecuteExW32 (LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfun
lpFile = wfileName;
lpFile = wfileName;
+ strcpyW(wcmd, wszApplicationName);
if (sei_tmp.lpParameters[0]) {
if (sei_tmp.lpParameters[0]) {
- strcatW(w
szApplicationName
, wSpace);
- strcatW(w
szApplicationName
, wszParameters);
+ strcatW(w
cmd
, wSpace);
+ strcatW(w
cmd
, wszParameters);
}
/* We set the default to open, and that should generally work.
}
/* We set the default to open, and that should generally work.
@@
-1273,7
+1274,7
@@
BOOL WINAPI ShellExecuteExW32 (LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfun
if (!sei_tmp.lpVerb)
sei_tmp.lpVerb = wszOpen;
if (!sei_tmp.lpVerb)
sei_tmp.lpVerb = wszOpen;
- retval = execfunc(w
szApplicationName
, NULL, FALSE, &sei_tmp, sei);
+ retval = execfunc(w
cmd
, NULL, FALSE, &sei_tmp, sei);
if (retval > 32)
return TRUE;
if (retval > 32)
return TRUE;