Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2d7ef72c
Commit
2d7ef72c
authored
Jun 15, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove dead code in SHELL_FindExecutable().
parent
f248440d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
32 deletions
+3
-32
shlexec.c
dlls/shell32/shlexec.c
+3
-32
No files found.
dlls/shell32/shlexec.c
View file @
2d7ef72c
...
...
@@ -607,38 +607,9 @@ UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOperation,
if
(
*
filetype
)
{
if
(
lpOperation
)
{
/* pass the operation string to SHELL_FindExecutableByOperation() */
filetype
[
filetypelen
]
=
'\0'
;
retval
=
SHELL_FindExecutableByOperation
(
lpPath
,
lpFile
,
lpOperation
,
key
,
filetype
,
command
,
sizeof
(
command
));
}
else
{
WCHAR
operation
[
MAX_PATH
];
HKEY
hkey
;
/* Looking for ...buffer\shell\<operation>\command */
strcatW
(
filetype
,
wszShell
);
/* enumerate the operation subkeys in the registry and search for one with an associated command */
if
(
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
filetype
,
&
hkey
)
==
ERROR_SUCCESS
)
{
int
idx
=
0
;
for
(;;
++
idx
)
{
if
(
RegEnumKeyW
(
hkey
,
idx
,
operation
,
MAX_PATH
)
!=
ERROR_SUCCESS
)
break
;
filetype
[
filetypelen
]
=
'\0'
;
retval
=
SHELL_FindExecutableByOperation
(
lpPath
,
lpFile
,
operation
,
key
,
filetype
,
command
,
sizeof
(
command
));
if
(
retval
>
32
)
break
;
}
RegCloseKey
(
hkey
);
}
}
/* pass the operation string to SHELL_FindExecutableByOperation() */
filetype
[
filetypelen
]
=
'\0'
;
retval
=
SHELL_FindExecutableByOperation
(
lpPath
,
lpFile
,
lpOperation
,
key
,
filetype
,
command
,
sizeof
(
command
));
if
(
retval
>
32
)
{
...
...
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