Fix wrong sizeof call.

This commit is contained in:
Eugene Wang
2026-01-01 23:22:35 -05:00
parent b9988b2f13
commit 0c8f0fc27d
+2 -1
View File
@@ -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,