diff --git a/src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.h b/src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.h index 10574adba215a8740e3d746b8bb02a186588bebf..536b935352db9b0fae5c8ab9075b175cf854290d 100644 --- a/src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.h +++ b/src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.h @@ -189,7 +189,11 @@ putRGBADither(rgbquad_t value, void *ptr, ImageFormat * format, PUT(rgbquad_t, ptr, value); break; case 3: /* not supported, LSB or MSB should always be specified */ - *(int *) 0 = 0; /* crash */ + PUT(byte_t, ptr, 0xff); /* Put a stub value */ + INCP(byte_t, ptr); + PUT(byte_t, ptr, 0xff); + INCP(byte_t, ptr); + PUT(byte_t, ptr, 0xff); break; case 2: PUT(word_t, ptr, value); @@ -253,7 +257,7 @@ getRGBA(void *ptr, ImageFormat * format) value = GET(rgbquad_t, ptr); break; case 3: /* not supported, LSB or MSB should always be specified */ - *(int *) 0 = 0; + value = 0xFFFFFFFF; /*return a stub value */ break; case 2: value = (rgbquad_t) GET(word_t, ptr);