Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 561500 | Differences between
and this patch

Collapse All | Expand All

(-)openjdk.orig/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c (-3 / +1 lines)
Lines 551-558 Link Here
551
{
551
{
552
    XImage *img = NULL;
552
    XImage *img = NULL;
553
    XShmSegmentInfo *shminfo;
553
    XShmSegmentInfo *shminfo;
554
    JNIEnv* env;
555
    jboolean xShmAttachResult;
556
554
557
    shminfo = malloc(sizeof(XShmSegmentInfo));
555
    shminfo = malloc(sizeof(XShmSegmentInfo));
558
    if (shminfo == NULL) {
556
    if (shminfo == NULL) {
Lines 603-609 Link Here
603
     */
601
     */
604
    shmctl(shminfo->shmid, IPC_RMID, 0);
602
    shmctl(shminfo->shmid, IPC_RMID, 0);
605
603
606
    if (xShmAttachResult == JNI_FALSE) {
604
    if (isXShmAttachFailed() == JNI_TRUE) {
607
        J2dRlsTraceLn1(J2D_TRACE_ERROR,
605
        J2dRlsTraceLn1(J2D_TRACE_ERROR,
608
                       "X11SD_SetupSharedSegment XShmAttach has failed: %s",
606
                       "X11SD_SetupSharedSegment XShmAttach has failed: %s",
609
                       strerror(errno));
607
                       strerror(errno));

Return to bug 561500