]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/regiong.cpp
wxASSERT_MSG instead of wxASSERT
[wxWidgets.git] / src / generic / regiong.cpp
index 82d5e85d0d71d471a98bf76d9f375e17325d7a1d..ca1ee59ad5a5729e5abff8e635d9309349be8de4 100644 (file)
@@ -166,7 +166,7 @@ public:
     /* XCreateRegion */
     {   size = 1;
         numRects = 0;
-        rects = NULL;
+        rects = ( BOX * )malloc( (unsigned) sizeof( BOX ));
         extents.x1 = 0;
         extents.x2 = 0;
         extents.y1 = 0;