msi: Send the expected data to set_deferred_action_props

James Hawkins truiken at gmail.com
Mon Jun 18 11:40:34 CDT 2007


Hi,

Fixes bug 8709.  http://bugs.winehq.org/show_bug.cgi?id=8709

Changelog:
* Send the expected data to set_deferred_action_props.

 dlls/msi/custom.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index c89acbf..af9c8dc 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -157,7 +157,7 @@ static LPWSTR msi_get_deferred_action(LP
 
 static void set_deferred_action_props(MSIPACKAGE *package, LPWSTR deferred_data)
 {
-    LPWSTR end, beg = deferred_data;
+    LPWSTR end, beg = deferred_data + 1;
 
     end = strchrW(beg, ';');
     *end = '\0';
@@ -189,11 +189,10 @@ UINT ACTION_CustomAction(MSIPACKAGE *pac
     LPWSTR action_copy = strdupW(action);
     WCHAR *deformated=NULL;
 
-    /* deferred action: [CustomActionData]Action */
+    /* deferred action: [properties]Action */
     if ((ptr = strchrW(action_copy, ']')))
     {
-        deferred_data = action_copy + 1;
-        *ptr = '\0';
+        deferred_data = action_copy;
         action = ptr + 1;
     }
 
-- 
1.4.1


More information about the wine-patches mailing list