mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[WIN32K:NTUSER] Avoid dereferencing a null pointer in NC_DoNCPaint. CORE-15569
This commit is contained in:
parent
a3f8813fff
commit
b2dcb8e0d8
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue