8156723: JVM crash at sun.java2d.windows.GDIBlitLoops.nativeBlit
Reviewed-by: serb
This commit is contained in:
parent
b68a13573f
commit
2af32d911b
@ -128,7 +128,7 @@ void SetupThreadGraphicsInfo(JNIEnv *env, GDIWinSDOps *wsdo) {
|
||||
return;
|
||||
}
|
||||
hDC = comp->GetDCFromComponent();
|
||||
if (hDC != NULL) {
|
||||
if (hDC != NULL && wsdo->device != NULL) {
|
||||
::SelectObject(hDC, nullbrush);
|
||||
::SelectObject(hDC, nullpen);
|
||||
::SelectClipRgn(hDC, (HRGN) NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user