mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Fix getting mem func entrypoint never worked.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user