Permalink
Browse files

[WIN32K:NTUSER] Avoid dereferencing a null pointer in NC_DoNCPaint. C…

…ORE-15569
  • Loading branch information...
ThFabba committed Jan 8, 2019
1 parent a3f8813 commit b2dcb8e0d8925fc1aed2adeaf74ad0291e29f8f6
Showing with 5 additions and 3 deletions.
  1. +5 −3 win32ss/user/ntuser/nonclient.c
@@ -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);

0 comments on commit b2dcb8e

Please sign in to comment.