msi: Include the dialog in the check for duplicate event subscriptions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
05eae360d7
commit
8fe7ee31a1
|
@ -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 ))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue