mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 16:02:20 +00:00
msi: Initialize a default COM apartment for custom actions.
This commit is contained in:
parent
1d42de71ea
commit
18407eafdc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue