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
0746b907
Commit
0746b907
authored
Feb 20, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Feb 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Cleanup the dialog event subscriptions when destroying the dialog.
parent
0197c2c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
dialog.c
dlls/msi/dialog.c
+3
-0
events.c
dlls/msi/events.c
+1
-2
msipriv.h
dlls/msi/msipriv.h
+1
-0
No files found.
dlls/msi/dialog.c
View file @
0746b907
...
...
@@ -3429,6 +3429,9 @@ void msi_dialog_destroy( msi_dialog *dialog )
if
(
dialog
->
hwnd
)
DestroyWindow
(
dialog
->
hwnd
);
/* unsubscribe events */
ControlEvent_CleanupDialogSubscriptions
(
dialog
->
package
,
dialog
->
name
);
/* destroy the list of controls */
while
(
!
list_empty
(
&
dialog
->
controls
)
)
{
...
...
dlls/msi/events.c
View file @
0746b907
...
...
@@ -54,7 +54,6 @@ struct subscriber {
};
static
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
...
...
@@ -321,7 +320,7 @@ VOID ControlEvent_FireSubscribedEvent( MSIPACKAGE *package, LPCWSTR event,
}
}
static
VOID
ControlEvent_CleanupDialogSubscriptions
(
MSIPACKAGE
*
package
,
LPWSTR
dialog
)
VOID
ControlEvent_CleanupDialogSubscriptions
(
MSIPACKAGE
*
package
,
LPWSTR
dialog
)
{
struct
list
*
i
,
*
t
;
struct
subscriber
*
sub
;
...
...
dlls/msi/msipriv.h
View file @
0746b907
...
...
@@ -781,6 +781,7 @@ extern void msi_ui_error( DWORD msg_id, DWORD type );
/* control event stuff */
extern
VOID
ControlEvent_FireSubscribedEvent
(
MSIPACKAGE
*
package
,
LPCWSTR
event
,
MSIRECORD
*
data
);
extern
VOID
ControlEvent_CleanupDialogSubscriptions
(
MSIPACKAGE
*
package
,
LPWSTR
dialog
);
extern
VOID
ControlEvent_CleanupSubscriptions
(
MSIPACKAGE
*
package
);
extern
VOID
ControlEvent_SubscribeToEvent
(
MSIPACKAGE
*
package
,
msi_dialog
*
dialog
,
LPCWSTR
event
,
LPCWSTR
control
,
LPCWSTR
attribute
);
...
...
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