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
7ef7d975
Commit
7ef7d975
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 to create error dialogs for the run dialog.
parent
47298e25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
dialogs.c
dlls/shell32/dialogs.c
+0
-15
No files found.
dlls/shell32/dialogs.c
View file @
7ef7d975
...
...
@@ -224,7 +224,6 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
sei
.
hwnd
=
hwnd
;
sei
.
nShow
=
SW_SHOWNORMAL
;
sei
.
lpFile
=
psz
;
sei
.
fMask
=
SEE_MASK_FLAG_NO_UI
;
if
(
prfdp
->
lpstrDirectory
)
sei
.
lpDirectory
=
prfdp
->
lpstrDirectory
;
...
...
@@ -233,20 +232,6 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
if
(
ShellExecuteExW
(
&
sei
)
<
33
)
{
char
*
pszSysMsg
=
NULL
;
char
szMsg
[
256
];
FormatMessageA
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
GetLastError
(),
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
),
(
LPSTR
)
&
pszSysMsg
,
0
,
NULL
)
;
sprintf
(
szMsg
,
"Error: %s"
,
pszSysMsg
)
;
LocalFree
((
HLOCAL
)
pszSysMsg
)
;
MessageBoxA
(
hwnd
,
szMsg
,
"Nix"
,
MB_OK
|
MB_ICONEXCLAMATION
)
;
HeapFree
(
GetProcessHeap
(),
0
,
psz
);
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
SendMessageA
(
htxt
,
CB_SETEDITSEL
,
0
,
MAKELPARAM
(
0
,
-
1
))
;
...
...
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