msi [7/12]: Publish the SelectionPath event in the SetTargetPath
event
James Hawkins
truiken at gmail.com
Tue Oct 3 17:02:07 CDT 2006
Hi,
Changelog:
* Publish the SelectionPath event in the SetTargetPath event.
dlls/msi/events.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
--
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/events.c b/dlls/msi/events.c
index 3502e9a..53a6f62 100644
--- a/dlls/msi/events.c
+++ b/dlls/msi/events.c
@@ -243,10 +243,18 @@ static UINT ControlEvent_SetTargetPath(M
msi_dialog* dialog)
{
LPWSTR path = msi_dup_property( package, argument );
+ MSIRECORD *rec = MSI_CreateRecord( 1 );
UINT r;
+
+ static const WCHAR szSelectionPath[] = {'S','e','l','e','c','t','i','o','n','P','a','t','h',0};
+
+ MSI_RecordSetStringW( rec, 1, path );
+ ControlEvent_FireSubscribedEvent( package, szSelectionPath, rec );
+
/* failure to set the path halts the executing of control events */
r = MSI_SetTargetPathW(package, argument, path);
msi_free(path);
+ msi_free(&rec->hdr);
return r;
}
--
1.4.2.1
More information about the wine-patches
mailing list