Commit 18407eaf authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Initialize a default COM apartment for custom actions.

parent 1d42de71
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment