--- old/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp 2015-04-06 15:42:39.441883300 +0300 +++ new/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp 2015-04-06 15:42:38.970883300 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -4322,7 +4322,8 @@ if ((drawInfo.itemState & ODS_FOCUS) && (drawInfo.itemAction & (ODA_FOCUS | ODA_DRAWENTIRE))) { if (!unfocusableChoice){ - VERIFY(::DrawFocusRect(hDC, &rect)); + if(::DrawFocusRect(hDC, &rect) == 0) + VERIFY(::GetLastError() == 0); } } env->DeleteLocalRef(target);