https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b2dcb8e0d8925fc1aed2ad...
commit b2dcb8e0d8925fc1aed2adeaf74ad0291e29f8f6 Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Tue Jan 8 11:26:26 2019 +0100 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Tue Jan 8 11:27:33 2019 +0100
[WIN32K:NTUSER] Avoid dereferencing a null pointer in NC_DoNCPaint. CORE-15569 --- win32ss/user/ntuser/nonclient.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/win32ss/user/ntuser/nonclient.c b/win32ss/user/ntuser/nonclient.c index 44476f8cee..8f45582142 100644 --- a/win32ss/user/ntuser/nonclient.c +++ b/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);