Skip to content

Commit

Permalink
The layout of the ITypeLib2 interface is incorrect. (#100255)
Browse files Browse the repository at this point in the history
Since build-in COM marshalling relies on the declaration
order to build the RCW vtable, this is and has almost always
resulted in an A/V or undefined behavior.
  • Loading branch information
AaronRobinsonMSFT authored Mar 26, 2024
1 parent 68193c4 commit 9083a3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public interface ITypeLib2 : ITypeLib
[PreserveSig]
new void ReleaseTLibAttr(IntPtr pTLibAttr);
void GetCustData(ref Guid guid, out object pVarVal);
void GetLibStatistics(IntPtr pcUniqueNames, out int pcchUniqueNames);
[LCIDConversion(1)]
void GetDocumentation2(int index, out string pbstrHelpString, out int pdwHelpStringContext, out string pbstrHelpStringDll);
void GetLibStatistics(IntPtr pcUniqueNames, out int pcchUniqueNames);
void GetAllCustData(IntPtr pCustData);
}
}

0 comments on commit 9083a3b

Please sign in to comment.