changeset 7448:10558009e439

8011154: java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed since 7u25b03 on windows Reviewed-by: art, yan
author anthony
date Tue, 09 Apr 2013 12:05:27 +0400
parents bb0ec4661eb8
children 0f0ff6e9da05
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 22 11:08:27 2013 +0100
+++ b/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);
                 }