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
6f3f2549
Commit
6f3f2549
authored
Dec 18, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Dec 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Only cleanup event subscriptions of the dialog being closed.
parent
975d7ff2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
events.c
dlls/msi/events.c
+19
-1
No files found.
dlls/msi/events.c
View file @
6f3f2549
...
...
@@ -54,6 +54,7 @@ struct subscriber {
};
UINT
ControlEvent_HandleControlEvent
(
MSIPACKAGE
*
,
LPCWSTR
,
LPCWSTR
,
msi_dialog
*
);
static
VOID
ControlEvent_CleanupDialogSubscriptions
(
MSIPACKAGE
*
package
,
LPWSTR
dialog
);
/*
* Create a dialog box and run it if it's modal
...
...
@@ -123,7 +124,7 @@ static UINT ControlEvent_EndDialog(MSIPACKAGE* package, LPCWSTR argument,
package
->
CurrentInstallState
=
ERROR_FUNCTION_FAILED
;
}
ControlEvent_Cleanup
Subscriptions
(
package
);
ControlEvent_Cleanup
DialogSubscriptions
(
package
,
msi_dialog_get_name
(
dialog
)
);
msi_dialog_end_dialog
(
dialog
);
return
ERROR_SUCCESS
;
}
...
...
@@ -320,6 +321,23 @@ VOID ControlEvent_FireSubscribedEvent( MSIPACKAGE *package, LPCWSTR event,
}
}
static
VOID
ControlEvent_CleanupDialogSubscriptions
(
MSIPACKAGE
*
package
,
LPWSTR
dialog
)
{
struct
list
*
i
,
*
t
;
struct
subscriber
*
sub
;
LIST_FOR_EACH_SAFE
(
i
,
t
,
&
package
->
subscriptions
)
{
sub
=
LIST_ENTRY
(
i
,
struct
subscriber
,
entry
);
if
(
lstrcmpW
(
msi_dialog_get_name
(
sub
->
dialog
),
dialog
))
continue
;
list_remove
(
&
sub
->
entry
);
free_subscriber
(
sub
);
}
}
VOID
ControlEvent_CleanupSubscriptions
(
MSIPACKAGE
*
package
)
{
struct
list
*
i
,
*
t
;
...
...
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