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
215f6c47
Commit
215f6c47
authored
Aug 06, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Handle directories in ShellExecute.
parent
164e264a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
shlexec.c
dlls/shell32/shlexec.c
+28
-0
No files found.
dlls/shell32/shlexec.c
View file @
215f6c47
...
@@ -1755,6 +1755,34 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
...
@@ -1755,6 +1755,34 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
sei
,
execfunc
);
sei
,
execfunc
);
HeapFree
(
GetProcessHeap
(),
0
,
env
);
HeapFree
(
GetProcessHeap
(),
0
,
env
);
}
}
else
if
(
PathIsDirectoryW
(
lpFile
))
{
static
const
WCHAR
wExplorer
[]
=
{
'e'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
wQuote
[]
=
{
'"'
,
0
};
WCHAR
wExec
[
MAX_PATH
];
WCHAR
*
lpQuotedFile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WCHAR
)
*
(
strlenW
(
lpFile
)
+
3
)
);
if
(
lpQuotedFile
)
{
retval
=
SHELL_FindExecutable
(
sei_tmp
.
lpDirectory
,
wExplorer
,
wszOpen
,
wExec
,
MAX_PATH
,
NULL
,
&
env
,
NULL
,
NULL
);
if
(
retval
>
32
)
{
strcpyW
(
lpQuotedFile
,
wQuote
);
strcatW
(
lpQuotedFile
,
lpFile
);
strcatW
(
lpQuotedFile
,
wQuote
);
retval
=
SHELL_quote_and_execute
(
wExec
,
lpQuotedFile
,
lpstrProtocol
,
wszApplicationName
,
env
,
&
sei_tmp
,
sei
,
execfunc
);
HeapFree
(
GetProcessHeap
(),
0
,
env
);
}
HeapFree
(
GetProcessHeap
(),
0
,
lpQuotedFile
);
}
else
retval
=
0
;
/* Out of memory */
}
else
if
(
PathIsURLW
(
lpFile
))
/* File not found, check for URL */
else
if
(
PathIsURLW
(
lpFile
))
/* File not found, check for URL */
{
{
retval
=
SHELL_execute_url
(
lpFile
,
wFile
,
wcmd
,
&
sei_tmp
,
sei
,
execfunc
);
retval
=
SHELL_execute_url
(
lpFile
,
wFile
,
wcmd
,
&
sei_tmp
,
sei
,
execfunc
);
...
...
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