Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
06f1f53c
Commit
06f1f53c
authored
Mar 22, 2020
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Mar 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Simplify SHELL_execute().
Signed-off-by:
Damjan Jovanovic
<
damjan.jov@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe83877c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
shlexec.c
dlls/shell32/shlexec.c
+4
-20
No files found.
dlls/shell32/shlexec.c
View file @
06f1f53c
...
...
@@ -1806,26 +1806,10 @@ static BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
TRACE
(
"execute:%s,%s,%s
\n
"
,
debugstr_w
(
wszApplicationName
),
debugstr_w
(
wszParameters
),
debugstr_w
(
wszDir
));
lpFile
=
sei_tmp
.
lpFile
;
wcmd
=
wcmdBuffer
;
len
=
lstrlenW
(
wszApplicationName
)
+
3
;
if
(
sei_tmp
.
lpParameters
[
0
])
len
+=
1
+
lstrlenW
(
wszParameters
);
if
(
len
>
wcmdLen
)
{
wcmd
=
heap_alloc
(
len
*
sizeof
(
WCHAR
));
wcmdLen
=
len
;
}
wcmd
[
0
]
=
'\"'
;
len
=
lstrlenW
(
wszApplicationName
);
memcpy
(
wcmd
+
1
,
wszApplicationName
,
len
*
sizeof
(
WCHAR
));
len
++
;
wcmd
[
len
++
]
=
'\"'
;
wcmd
[
len
]
=
0
;
if
(
sei_tmp
.
lpParameters
[
0
])
{
wcmd
[
len
++
]
=
' '
;
strcpyW
(
wcmd
+
len
,
wszParameters
);
}
retval
=
execfunc
(
wcmd
,
NULL
,
FALSE
,
&
sei_tmp
,
sei
);
strcpyW
(
wcmd
,
wszApplicationName
);
retval
=
SHELL_quote_and_execute
(
wcmd
,
wszParameters
,
wszEmpty
,
wszApplicationName
,
NULL
,
&
sei_tmp
,
sei
,
execfunc
);
if
(
retval
>
32
)
{
heap_free
(
wszApplicationName
);
if
(
wszParameters
!=
parametersBuffer
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment