提交 136d7e93 编写于 作者: M mcherkas

8156723: JVM crash at sun.java2d.windows.GDIBlitLoops.nativeBlit

Reviewed-by: serb
上级 88ab4507
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册