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
71e5f3c1
Commit
71e5f3c1
authored
Dec 13, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix FindExecutable() to return the executable path, not the whole command.
parent
65b81beb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
shlexec.c
dlls/shell32/shlexec.c
+10
-0
shlexec.c
dlls/shell32/tests/shlexec.c
+7
-7
No files found.
dlls/shell32/shlexec.c
View file @
71e5f3c1
...
...
@@ -707,6 +707,16 @@ UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOperation,
}
*
p
=
'\0'
;
}
else
{
/* Truncate on first space, like Windows:
* http://support.microsoft.com/?scid=kb%3Ben-us%3B140724
*/
WCHAR
*
p
=
lpResult
;
while
(
*
p
!=
' '
&&
*
p
!=
'\0'
)
p
++
;
*
p
=
'\0'
;
}
}
}
else
/* Check win.ini */
...
...
dlls/shell32/tests/shlexec.c
View file @
71e5f3c1
...
...
@@ -498,24 +498,24 @@ static filename_tests_t filename_tests[]=
{
NULL
,
"%s
\\
nonexistent.noassoc"
,
0x11
,
SE_ERR_FNF
},
/* Standard tests */
{
NULL
,
"%s
\\
test file.shlexec"
,
0x
2
0
,
33
},
{
NULL
,
"%s
\\
test file.shlexec."
,
0x
2
0
,
33
},
{
NULL
,
"%s
\\
%%nasty%% $file.shlexec"
,
0x
2
0
,
33
},
{
NULL
,
"%s/test file.shlexec"
,
0x
2
0
,
33
},
{
NULL
,
"%s
\\
test file.shlexec"
,
0x0
,
33
},
{
NULL
,
"%s
\\
test file.shlexec."
,
0x0
,
33
},
{
NULL
,
"%s
\\
%%nasty%% $file.shlexec"
,
0x0
,
33
},
{
NULL
,
"%s/test file.shlexec"
,
0x0
,
33
},
/* Test filenames with no association */
{
NULL
,
"%s
\\
test file.noassoc"
,
0x0
,
SE_ERR_NOASSOC
},
/* Test double extensions */
{
NULL
,
"%s
\\
test file.noassoc.shlexec"
,
0x
2
0
,
33
},
{
NULL
,
"%s
\\
test file.noassoc.shlexec"
,
0x0
,
33
},
{
NULL
,
"%s
\\
test file.shlexec.noassoc"
,
0x0
,
SE_ERR_NOASSOC
},
/* Test alternate verbs */
{
"LowerL"
,
"%s
\\
nonexistent.shlexec"
,
0x11
,
SE_ERR_FNF
},
{
"LowerL"
,
"%s
\\
test file.noassoc"
,
0x0
,
SE_ERR_NOASSOC
},
{
"QuotedLowerL"
,
"%s
\\
test file.shlexec"
,
0x
2
0
,
33
},
{
"QuotedUpperL"
,
"%s
\\
test file.shlexec"
,
0x
2
0
,
33
},
{
"QuotedLowerL"
,
"%s
\\
test file.shlexec"
,
0x0
,
33
},
{
"QuotedUpperL"
,
"%s
\\
test file.shlexec"
,
0x0
,
33
},
{
NULL
,
NULL
,
0
}
};
...
...
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