X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4a81a2e96b5a349ee9430b91d36e7e8a21d7976..a4f964122df05b83a7753ea50fb0831b9781822d:/src/msw/pen.cpp diff --git a/src/msw/pen.cpp b/src/msw/pen.cpp index 50f821006a..2862a4dcc3 100644 --- a/src/msw/pen.cpp +++ b/src/msw/pen.cpp @@ -224,6 +224,11 @@ bool wxPen::RealizeResource() break ; default: logb.lbStyle = BS_SOLID ; + // this should be unnecessary (it's unused) but suppresses the Purigy + // messages about uninitialized memory read +#ifdef __WXDEBUG__ + logb.lbHatch = 0; +#endif break ; } logb.lbColor = ms_colour ;