mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Fix wrong sizeof call.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Versioning;
|
using System.Runtime.Versioning;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Windows.Win32;
|
using Windows.Win32;
|
||||||
@@ -119,7 +120,7 @@ internal sealed class Win32MessagePump : IDisposable
|
|||||||
{
|
{
|
||||||
var wc = new WNDCLASSEXW
|
var wc = new WNDCLASSEXW
|
||||||
{
|
{
|
||||||
cbSize = (uint)sizeof(WNDCLASSEXW),
|
cbSize = (uint)Marshal.SizeOf<WNDCLASSEXW>(),
|
||||||
style = 0,
|
style = 0,
|
||||||
lpfnWndProc = s_wndProc,
|
lpfnWndProc = s_wndProc,
|
||||||
cbClsExtra = 0,
|
cbClsExtra = 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user