From 098b000c8616bc14e86cd0c77919e507849b6804 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 18 Jul 2016 15:46:38 +0000 Subject: [PATCH] [USER32] Add missing lprc check in SetRect(). svn path=/trunk/; revision=71962 --- reactos/win32ss/user/user32/windows/rect.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/user/user32/windows/rect.c b/reactos/win32ss/user/user32/windows/rect.c index 79577810830..98ca69e84a3 100644 --- a/reactos/win32ss/user/user32/windows/rect.c +++ b/reactos/win32ss/user/user32/windows/rect.c @@ -159,11 +159,15 @@ SetRect(LPRECT lprc, int xRight, int yBottom) { + if (!lprc) + return FALSE; + lprc->left = xLeft; lprc->top = yTop; lprc->right = xRight; lprc->bottom = yBottom; - return(TRUE); + + return TRUE; } -- 2.17.1