[USER32] Add missing lprc check in SetRect().
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 18 Jul 2016 15:46:38 +0000 (15:46 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 18 Jul 2016 15:46:38 +0000 (15:46 +0000)
svn path=/trunk/; revision=71962

reactos/win32ss/user/user32/windows/rect.c

index 7957781..98ca69e 100644 (file)
@@ -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;
 }