LOGBRUSH.lbHatch must be a ULONG_PTR since it can contain a handle.
diff --git a/include/wingdi.h b/include/wingdi.h
index dd752c6..e29bed9 100644
--- a/include/wingdi.h
+++ b/include/wingdi.h
@@ -478,11 +478,18 @@
typedef struct
{
- UINT lbStyle;
+ UINT lbStyle;
COLORREF lbColor;
- INT lbHatch;
+ ULONG_PTR lbHatch;
} LOGBRUSH, *PLOGBRUSH, *LPLOGBRUSH;
+typedef struct
+{
+ UINT lbStyle;
+ COLORREF lbColor;
+ ULONG lbHatch;
+} LOGBRUSH32, *PLOGBRUSH32, *LPLOGBRUSH32;
+
typedef LOGBRUSH PATTERN, *PPATTERN, *LPPATTERN;
@@ -2117,9 +2124,9 @@
} EMRBITBLT, *PEMRBITBLT;
typedef struct {
- EMR emr;
- DWORD ihBrush;
- LOGBRUSH lb;
+ EMR emr;
+ DWORD ihBrush;
+ LOGBRUSH32 lb;
} EMRCREATEBRUSHINDIRECT, *PEMRCREATEBRUSHINDIRECT;
typedef struct {