msi: Initialize a default COM apartment for custom actions.

oldstable
James Hawkins 2007-12-20 00:49:40 -06:00 committed by Alexandre Julliard
parent 1d42de71ea
commit 18407eafdc
1 changed files with 4 additions and 0 deletions

View File

@ -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