msi: Include the dialog in the check for duplicate event subscriptions.
Hans Leidekker
hans at codeweavers.com
Tue Jan 26 04:16:05 CST 2016
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/msi/dialog.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 245bfdc..b0f0e5d 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -704,11 +704,13 @@ static void event_subscribe( msi_dialog *dialog, const WCHAR *event, const WCHAR
{
struct subscriber *sub;
- TRACE("event %s control %s attribute %s\n", debugstr_w(event), debugstr_w(control), debugstr_w(attribute));
+ TRACE("dialog %s event %s control %s attribute %s\n", debugstr_w(dialog->name), debugstr_w(event),
+ debugstr_w(control), debugstr_w(attribute));
LIST_FOR_EACH_ENTRY( sub, &dialog->package->subscriptions, struct subscriber, entry )
{
- if (!strcmpiW( sub->event, event ) &&
+ if (sub->dialog == dialog &&
+ !strcmpiW( sub->event, event ) &&
!strcmpiW( sub->control, control ) &&
!strcmpiW( sub->attribute, attribute ))
{
--
2.1.4
More information about the wine-patches
mailing list