mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-03 20:50:19 +00:00
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…
x
Reference in New Issue
Block a user