[Wine-patches] [eterhack 6/6] msi: Set properties in some control events handlers (eterbug #953).

Alexander Morozov amorozov на etersoft.ru
Пт Авг 14 16:21:49 MSD 2009


---
 dlls/msi/events.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/events.c b/dlls/msi/events.c
index 7013e8c..ce12459 100644
--- a/dlls/msi/events.c
+++ b/dlls/msi/events.c
@@ -171,8 +171,10 @@ static UINT ControlEvent_AddLocal(MSIPACKAGE* package, LPCWSTR argument,
                                   msi_dialog* dialog)
 {
     static const WCHAR szAll[] = {'A','L','L',0};
+    static const WCHAR szAddLocal[] = {'A','D','D','L','O','C','A','L',0};
     MSIFEATURE *feature = NULL;
 
+    MSI_SetPropertyW(package, szAddLocal, argument);
     if (lstrcmpW(szAll,argument))
     {
         MSI_SetFeatureStateW(package,argument,INSTALLSTATE_LOCAL);
@@ -192,8 +194,10 @@ static UINT ControlEvent_Remove(MSIPACKAGE* package, LPCWSTR argument,
                                 msi_dialog* dialog)
 {
     static const WCHAR szAll[] = {'A','L','L',0};
+    static const WCHAR szRemove[] = {'R','E','M','O','V','E',0};
     MSIFEATURE *feature = NULL;
 
+    MSI_SetPropertyW(package, szRemove, argument);
     if (lstrcmpW(szAll,argument))
     {
         MSI_SetFeatureStateW(package,argument,INSTALLSTATE_ABSENT);
@@ -213,8 +217,10 @@ static UINT ControlEvent_AddSource(MSIPACKAGE* package, LPCWSTR argument,
                                    msi_dialog* dialog)
 {
     static const WCHAR szAll[] = {'A','L','L',0};
+    static const WCHAR szAddSource[] = {'A','D','D','S','O','U','R','C','E',0};
     MSIFEATURE *feature = NULL;
 
+    MSI_SetPropertyW(package, szAddSource, argument);
     if (lstrcmpW(szAll,argument))
     {
         MSI_SetFeatureStateW(package,argument,INSTALLSTATE_SOURCE);
-- 
1.6.3.3



Подробная информация о списке рассылки Wine-patches