msi: Free the data for type msidbCustomActionTypeContinue custom actions after DllThread executes

James Hawkins truiken at gmail.com
Fri Feb 23 04:08:46 CST 2007


Hi,

This fixes bug 7461.  http://bugs.winehq.org/show_bug.cgi?id=7461

Changelog:
* Free the data for type msidbCustomActionTypeContinue custom actions
after DllThread executes.

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

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index 4fc1ea9..a73c828 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -437,9 +437,6 @@ static UINT wait_thread_handle( msi_custom_action_info *info )
     else
     {
         TRACE("%s running in background\n", debugstr_w( info->action ));
-
-        if (info->type & msidbCustomActionTypeContinue)
-            free_custom_action_data( info );
     }
 
     return rc;
@@ -497,6 +494,9 @@ static DWORD WINAPI DllThread( LPVOID arg )
 
     TRACE("custom action (%x) returned %i\n", GetCurrentThreadId(), rc );
 
+    if ( info->type & msidbCustomActionTypeContinue )
+        free_custom_action_data( info );
+
     MsiCloseAllHandles();
     return rc;
 }
-- 
1.4.4.2


More information about the wine-patches mailing list