Commit e2a9e493 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Remove some unnecessary AddRef's.

parent 2c7cc631
......@@ -1833,12 +1833,10 @@ int TLB_ReadTypeLib(LPCWSTR pszFileName, INT index, ITypeLib2 **ppTypeLib)
if ( dwSignature == MSFT_SIGNATURE)
{
*ppTypeLib = ITypeLib2_Constructor_MSFT(pBase, dwTLBLength);
ITypeLib2_AddRef(*ppTypeLib);
}
else if ( dwSignature == SLTG_SIGNATURE)
{
*ppTypeLib = ITypeLib2_Constructor_SLTG(pBase, dwTLBLength);
ITypeLib2_AddRef(*ppTypeLib);
}
UnmapViewOfFile(pBase);
}
......@@ -1871,12 +1869,10 @@ int TLB_ReadTypeLib(LPCWSTR pszFileName, INT index, ITypeLib2 **ppTypeLib)
if ( dwSignature == MSFT_SIGNATURE)
{
*ppTypeLib = ITypeLib2_Constructor_MSFT(pBase, dwTLBLength);
ITypeLib2_AddRef(*ppTypeLib);
}
else if ( dwSignature == SLTG_SIGNATURE)
{
*ppTypeLib = ITypeLib2_Constructor_SLTG(pBase, dwTLBLength);
ITypeLib2_AddRef(*ppTypeLib);
}
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