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
68c1bf50
Commit
68c1bf50
authored
Oct 17, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Standardize on the ShellExecuteEx() terminology.
parent
23470870
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
shlexec.c
dlls/shell32/shlexec.c
+0
-0
shlexec.c
dlls/shell32/tests/shlexec.c
+8
-8
No files found.
dlls/shell32/shlexec.c
View file @
68c1bf50
This diff is collapsed.
Click to expand it.
dlls/shell32/tests/shlexec.c
View file @
68c1bf50
...
...
@@ -93,15 +93,15 @@ static int _todo_wait = 0;
static
char
shell_call
[
2048
]
=
""
;
static
int
bad_shellexecute
=
0
;
static
INT_PTR
shell_execute
(
LPCSTR
operation
,
LPCSTR
file
,
LPCSTR
parameters
,
LPCSTR
directory
)
static
INT_PTR
shell_execute
(
LPCSTR
verb
,
LPCSTR
file
,
LPCSTR
parameters
,
LPCSTR
directory
)
{
INT_PTR
rc
,
rcEmpty
=
0
;
if
(
!
operation
)
if
(
!
verb
)
rcEmpty
=
shell_execute
(
""
,
file
,
parameters
,
directory
);
strcpy
(
shell_call
,
"ShellExecute("
);
strcat_param
(
shell_call
,
"verb"
,
operation
);
strcat_param
(
shell_call
,
"verb"
,
verb
);
strcat_param
(
shell_call
,
"file"
,
file
);
strcat_param
(
shell_call
,
"params"
,
parameters
);
strcat_param
(
shell_call
,
"dir"
,
directory
);
...
...
@@ -116,7 +116,7 @@ static INT_PTR shell_execute(LPCSTR operation, LPCSTR file, LPCSTR parameters, L
* association it displays the 'Open With' dialog and I could not find
* a flag to prevent this.
*/
rc
=
(
INT_PTR
)
ShellExecute
(
NULL
,
operation
,
file
,
parameters
,
directory
,
SW_SHOWNORMAL
);
rc
=
(
INT_PTR
)
ShellExecute
(
NULL
,
verb
,
file
,
parameters
,
directory
,
SW_SHOWNORMAL
);
if
(
rc
>
32
)
{
...
...
@@ -145,7 +145,7 @@ static INT_PTR shell_execute(LPCSTR operation, LPCSTR file, LPCSTR parameters, L
if
(
rc
>
32
)
dump_child
();
if
(
!
operation
)
if
(
!
verb
)
{
if
(
rc
!=
rcEmpty
&&
rcEmpty
==
SE_ERR_NOASSOC
)
/* NT4 */
bad_shellexecute
=
1
;
...
...
@@ -156,7 +156,7 @@ static INT_PTR shell_execute(LPCSTR operation, LPCSTR file, LPCSTR parameters, L
return
rc
;
}
static
INT_PTR
shell_execute_ex
(
DWORD
mask
,
LPCSTR
operation
,
LPCSTR
file
,
static
INT_PTR
shell_execute_ex
(
DWORD
mask
,
LPCSTR
verb
,
LPCSTR
file
,
LPCSTR
parameters
,
LPCSTR
directory
,
LPCSTR
class
)
{
...
...
@@ -171,7 +171,7 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR operation, LPCSTR file,
sprintf
(
smask
,
"0x%x"
,
mask
);
strcat_param
(
shell_call
,
"mask"
,
smask
);
}
strcat_param
(
shell_call
,
"verb"
,
operation
);
strcat_param
(
shell_call
,
"verb"
,
verb
);
strcat_param
(
shell_call
,
"file"
,
file
);
strcat_param
(
shell_call
,
"params"
,
parameters
);
strcat_param
(
shell_call
,
"dir"
,
directory
);
...
...
@@ -183,7 +183,7 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR operation, LPCSTR file,
sei
.
cbSize
=
sizeof
(
sei
);
sei
.
fMask
=
SEE_MASK_NOCLOSEPROCESS
|
mask
;
sei
.
hwnd
=
NULL
;
sei
.
lpVerb
=
operation
;
sei
.
lpVerb
=
verb
;
sei
.
lpFile
=
file
;
sei
.
lpParameters
=
parameters
;
sei
.
lpDirectory
=
directory
;
...
...
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