Fix getting mem func entrypoint never worked.

This commit is contained in:
Eugene Wang
2026-01-06 18:28:20 -05:00
parent e073977268
commit 1b02f0fcad
@@ -13,7 +13,10 @@ namespace NTwain.Triplets.ControlDATs
public TWRC Get(ref TW_IDENTITY_LEGACY app, out TW_ENTRYPOINT_DELEGATES entry) public TWRC Get(ref TW_IDENTITY_LEGACY app, out TW_ENTRYPOINT_DELEGATES entry)
{ {
entry = default; entry = default;
TW_ENTRYPOINT rawentry = default; TW_ENTRYPOINT rawentry = new()
{
Size = (uint)Marshal.SizeOf<TW_ENTRYPOINT>()
};
var rc = DoIt(ref app, MSG.GET, ref rawentry); var rc = DoIt(ref app, MSG.GET, ref rawentry);
if (rc == TWRC.SUCCESS) if (rc == TWRC.SUCCESS)
{ {