[WIN32K:NTUSER] Avoid dereferencing a null pointer in NC_DoNCPaint. CORE-15569

This commit is contained in:
Thomas Faber 2019-01-08 11:26:26 +01:00
parent a3f8813fff
commit b2dcb8e0d8
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -1148,11 +1148,13 @@ NC_DoNCPaint(PWND pWnd, HDC hDC, INT Flags)
FillRect(hDC, &TempRect, IntGetSysColorBrush(COLOR_BTNFACE));
if (Parent)
{
IntGetClientRect(Parent, &ParentClientRect);
if (HASSIZEGRIP(Style, ExStyle, Parent->style, WindowRect, ParentClientRect))
{
DrawFrameControl(hDC, &TempRect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP);
if (HASSIZEGRIP(Style, ExStyle, Parent->style, WindowRect, ParentClientRect))
{
DrawFrameControl(hDC, &TempRect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP);
}
}
IntDrawScrollBar(pWnd, hDC, SB_VERT);