提交 35d4f061 编写于 作者: A anthony

8011154: java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed...

8011154: java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed since 7u25b03 on windows
Reviewed-by: art, yan
上级 2cb4c02a
...@@ -6151,7 +6151,7 @@ void AwtComponent::_SetRectangularShape(void *param) ...@@ -6151,7 +6151,7 @@ void AwtComponent::_SetRectangularShape(void *param)
RGNDATA *pRgnData = (RGNDATA *) SAFE_SIZE_STRUCT_ALLOC(safe_Malloc, RGNDATA *pRgnData = (RGNDATA *) SAFE_SIZE_STRUCT_ALLOC(safe_Malloc,
sizeof(RGNDATAHEADER), sizeof(RECT_T), numrects); 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) { if (pRect != rects) {
free(pRect); free(pRect);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册