Module: wine Branch: master Commit: 18407eafdc35911e8417f167ed3a2eb3c40469bc URL: http://source.winehq.org/git/wine.git/?a=commit;h=18407eafdc35911e8417f167ed...
Author: James Hawkins truiken@gmail.com Date: Thu Dec 20 00:49:40 2007 -0600
msi: Initialize a default COM apartment for custom actions.
---
dlls/msi/custom.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c index cf1e60b..0b887d5 100644 --- a/dlls/msi/custom.c +++ b/dlls/msi/custom.c @@ -689,6 +689,8 @@ static DWORD WINAPI ACTION_CallDllFunction( const GUID *guid ) TRACE("calling %s\n", debugstr_w( function ) ); handle_msi_break( function );
+ CoInitialize(NULL); + __TRY { r = fn( hPackage ); @@ -701,6 +703,8 @@ static DWORD WINAPI ACTION_CallDllFunction( const GUID *guid ) } __ENDTRY;
+ CoUninitialize(); + MsiCloseHandle( hPackage ); } else