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
47298e25
Commit
47298e25
authored
Dec 18, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use ShellExecuteEx instead of ShellExecute in the run dialog.
parent
5c24f70c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
dialogs.c
dlls/shell32/dialogs.c
+12
-4
No files found.
dlls/shell32/dialogs.c
View file @
47298e25
...
...
@@ -211,19 +211,27 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
if
((
ic
=
GetWindowTextLengthW
(
htxt
)))
{
WCHAR
*
psz
,
*
parent
=
NULL
;
LPCWSTR
working_dir
;
SHELLEXECUTEINFOW
sei
;
ZeroMemory
(
&
sei
,
sizeof
(
sei
))
;
sei
.
cbSize
=
sizeof
(
sei
)
;
psz
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
ic
+
1
)
*
sizeof
(
WCHAR
)
);
GetWindowTextW
(
htxt
,
psz
,
ic
+
1
)
;
/* according to http://www.codeproject.com/KB/shell/runfiledlg.aspx we should send a
* WM_NOTIFY before execution */
sei
.
hwnd
=
hwnd
;
sei
.
nShow
=
SW_SHOWNORMAL
;
sei
.
lpFile
=
psz
;
sei
.
fMask
=
SEE_MASK_FLAG_NO_UI
;
if
(
prfdp
->
lpstrDirectory
)
working_dir
=
prfdp
->
lpstrDirectory
;
sei
.
lpDirectory
=
prfdp
->
lpstrDirectory
;
else
working_dir
=
parent
=
RunDlg_GetParentDir
(
psz
);
sei
.
lpDirectory
=
parent
=
RunDlg_GetParentDir
(
sei
.
lpFile
);
if
(
ShellExecute
W
(
hwnd
,
NULL
,
psz
,
NULL
,
working_dir
,
SW_SHOWNORMAL
)
<
(
HINSTANCE
)
33
)
if
(
ShellExecute
ExW
(
&
sei
)
<
33
)
{
char
*
pszSysMsg
=
NULL
;
char
szMsg
[
256
];
...
...
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