]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/pen.cpp
better wxGetUserId/Name
[wxWidgets.git] / src / msw / pen.cpp
index 50f821006a8042c5f1fc6e6838a4cb7de46e02f1..2862a4dcc3078e5f954193ea7b5406c7b7fedeca 100644 (file)
@@ -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 ;