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
a8d1e6e0
Commit
a8d1e6e0
authored
Jan 12, 2006
by
Ge van Geldorp
Committed by
Alexandre Julliard
Jan 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix directory execution.
Only use the Folder class handler if we're actually executing a folder.
parent
92797c7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
shlexec.c
dlls/shell32/shlexec.c
+16
-3
No files found.
dlls/shell32/shlexec.c
View file @
a8d1e6e0
...
...
@@ -1315,9 +1315,22 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
strcpyW
(
wszApplicationName
,
wExplorer
);
sei_tmp
.
fMask
&=
~
SEE_MASK_INVOKEIDLIST
;
}
else
if
(
HCR_GetExecuteCommandW
(
0
,
wszFolder
,
sei_tmp
.
lpVerb
?
sei_tmp
.
lpVerb
:
wszOpen
,
buffer
,
sizeof
(
buffer
)))
{
SHELL_ArgifyW
(
wszApplicationName
,
sizeof
(
wszApplicationName
)
/
sizeof
(
WCHAR
),
buffer
,
NULL
,
sei_tmp
.
lpIDList
,
NULL
);
}
else
{
WCHAR
target
[
MAX_PATH
];
DWORD
attribs
;
/* Check if we're executing a directory and if so use the
handler for the Folder class */
strcpyW
(
target
,
buffer
);
attribs
=
GetFileAttributesW
(
buffer
);
if
(
attribs
!=
INVALID_FILE_ATTRIBUTES
&&
(
attribs
&
FILE_ATTRIBUTE_DIRECTORY
)
&&
HCR_GetExecuteCommandW
(
0
,
wszFolder
,
sei_tmp
.
lpVerb
?
sei_tmp
.
lpVerb
:
wszOpen
,
buffer
,
sizeof
(
buffer
)))
{
SHELL_ArgifyW
(
wszApplicationName
,
sizeof
(
wszApplicationName
)
/
sizeof
(
WCHAR
),
buffer
,
target
,
sei_tmp
.
lpIDList
,
NULL
);
}
sei_tmp
.
fMask
&=
~
SEE_MASK_INVOKEIDLIST
;
}
}
...
...
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