On Fri, 28 Jul 2023 07:52:14 GMT, Matthias Baesken <[email protected]> wrote:
> In file ThemeReader.cpp > functionJava_sun_awt_windows_ThemeReader_paintBackground > we create DCs and release them at the end, but seems we miss it in early > returns. > > While looking at the code, I noticed that CreateCompatibleDC can return NULL > in case of error/failure, but we ignore this case; see > https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createcompatibledc > . > Should we better handle it or is it not really occurring in practise ? Marked as reviewed by clanger (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/15064#pullrequestreview-1554108843
