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
30ddf739
Commit
30ddf739
authored
Jul 06, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash when cancelling out of a modeless dialog.
parent
cbe914c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
events.c
dlls/msi/events.c
+12
-9
No files found.
dlls/msi/events.c
View file @
30ddf739
...
...
@@ -57,21 +57,23 @@ UINT ControlEvent_HandleControlEvent(MSIPACKAGE *, LPCWSTR, LPCWSTR, msi_dialog*
/*
* Create a dialog box and run it if it's modal
*/
static
UINT
event_do_dialog
(
MSIPACKAGE
*
package
,
LPCWSTR
name
)
static
UINT
event_do_dialog
(
MSIPACKAGE
*
package
,
LPCWSTR
name
,
BOOL
destroy_modeless
)
{
msi_dialog
*
dialog
;
UINT
r
;
/* kill the current modeless dialog */
if
(
package
->
dialog
)
msi_dialog_destroy
(
package
->
dialog
);
package
->
dialog
=
NULL
;
/* create a new dialog */
dialog
=
msi_dialog_create
(
package
,
name
,
ControlEvent_HandleControlEvent
);
if
(
dialog
)
{
/* kill the current modeless dialog */
if
(
destroy_modeless
&&
package
->
dialog
)
{
msi_dialog_destroy
(
package
->
dialog
);
package
->
dialog
=
NULL
;
}
/* modeless dialogs return an error message */
r
=
msi_dialog_run_message_loop
(
dialog
);
if
(
r
==
ERROR_SUCCESS
)
...
...
@@ -139,7 +141,8 @@ static UINT ControlEvent_NewDialog(MSIPACKAGE* package, LPCWSTR argument,
static
UINT
ControlEvent_SpawnDialog
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
{
event_do_dialog
(
package
,
argument
);
/* don't destroy a modeless dialogs that might be our parent */
event_do_dialog
(
package
,
argument
,
FALSE
);
if
(
package
->
CurrentInstallState
!=
ERROR_SUCCESS
)
msi_dialog_end_dialog
(
dialog
);
return
ERROR_SUCCESS
;
...
...
@@ -339,13 +342,13 @@ UINT ACTION_DialogBox( MSIPACKAGE* package, LPCWSTR szDialogName )
* dialog, as it returns ERROR_IO_PENDING when we try to run
* its message loop.
*/
r
=
event_do_dialog
(
package
,
szDialogName
);
r
=
event_do_dialog
(
package
,
szDialogName
,
TRUE
);
while
(
r
==
ERROR_SUCCESS
&&
package
->
next_dialog
)
{
LPWSTR
name
=
package
->
next_dialog
;
package
->
next_dialog
=
NULL
;
r
=
event_do_dialog
(
package
,
name
);
r
=
event_do_dialog
(
package
,
name
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
name
);
}
...
...
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