8011154: java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed since 7u25b03 on windows
Reviewed-by: art, yan
--- a/jdk/src/windows/native/sun/windows/awt_Component.cpp Mon Apr 22 11:08:27 2013 +0100
+++ b/jdk/src/windows/native/sun/windows/awt_Component.cpp Tue Apr 09 12:05:27 2013 +0400
@@ -6151,7 +6151,7 @@
RGNDATA *pRgnData = (RGNDATA *) SAFE_SIZE_STRUCT_ALLOC(safe_Malloc,
sizeof(RGNDATAHEADER), sizeof(RECT_T), numrects);
- memcpy(pRgnData + sizeof(RGNDATAHEADER), pRect, sizeof(RECT_T) * numrects);
+ memcpy((BYTE*)pRgnData + sizeof(RGNDATAHEADER), pRect, sizeof(RECT_T) * numrects);
if (pRect != rects) {
free(pRect);
}