Module: wine Branch: master Commit: aea0dcc86da5c4779c04c87e4db7c9d409c7d739 URL: http://source.winehq.org/git/wine.git/?a=commit;h=aea0dcc86da5c4779c04c87e4d...
Author: James Hawkins truiken@gmail.com Date: Tue Oct 3 15:02:07 2006 -0700
msi: Publish the SelectionPath event in the SetTargetPath event.
---
dlls/msi/events.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
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; }