mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Fix _procEvent being never initialized.
This commit is contained in:
@@ -65,7 +65,7 @@ public partial class TwainAppSession : IDisposable
|
||||
DllPath.TryUseLocalDsm();
|
||||
|
||||
// no need to do another lock call when using marshal alloc
|
||||
TW_EVENT _procEvent = default;
|
||||
_procEvent = default;
|
||||
_procEvent.pEvent = Marshal.AllocHGlobal(Marshal.SizeOf<WinMSG>());
|
||||
|
||||
Thread pumpThread = new(() =>
|
||||
|
||||
Reference in New Issue
Block a user