This commit is contained in:
Dan Clark
2025-02-06 21:21:29 +00:00
parent 8bbfc415e6
commit 63f448f490
11 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ public static partial class WindowExtensions
HBRUSH hBrush = PInvoke.CreateSolidBrush(new COLORREF((uint)ToWin32(Color.Black)));
_ = PInvoke.FillRect(new HDC((nint)wParam.Value),
&rect, hBrush);
_ = PInvoke.DeleteObject(new HGDIOBJ(hBrush));
_ = PInvoke.DeleteObject(new HGDIOBJ((void*)hBrush));
return new LRESULT(1);
}