changeset 5973:97b9792d98c7

8011154: java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed since 7u25b03 on windows Reviewed-by: art, yan
author anthony
date Tue, 09 Apr 2013 12:08:53 +0400
parents afdba2ff7ddc
children 89d9ec9e80c1
files src/windows/native/sun/windows/awt_Component.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Component.cpp	Mon Apr 08 21:43:18 2013 -0700
+++ b/src/windows/native/sun/windows/awt_Component.cpp	Tue Apr 09 12:08:53 2013 +0400
@@ -6131,7 +6131,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);
                 }