mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 22:18:13 +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));
|
FillRect(hDC, &TempRect, IntGetSysColorBrush(COLOR_BTNFACE));
|
||||||
|
|
||||||
if (Parent)
|
if (Parent)
|
||||||
|
{
|
||||||
IntGetClientRect(Parent, &ParentClientRect);
|
IntGetClientRect(Parent, &ParentClientRect);
|
||||||
|
|
||||||
if (HASSIZEGRIP(Style, ExStyle, Parent->style, WindowRect, ParentClientRect))
|
if (HASSIZEGRIP(Style, ExStyle, Parent->style, WindowRect, ParentClientRect))
|
||||||
{
|
{
|
||||||
DrawFrameControl(hDC, &TempRect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP);
|
DrawFrameControl(hDC, &TempRect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IntDrawScrollBar(pWnd, hDC, SB_VERT);
|
IntDrawScrollBar(pWnd, hDC, SB_VERT);
|
||||||
|
|
Loading…
Reference in a new issue