Author: akhaldi
Date: Mon Jul 18 15:46:38 2016
New Revision: 71962
URL:
http://svn.reactos.org/svn/reactos?rev=71962&view=rev
Log:
[USER32] Add missing lprc check in SetRect().
Modified:
trunk/reactos/win32ss/user/user32/windows/rect.c
Modified: trunk/reactos/win32ss/user/user32/windows/rect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/rect.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/rect.c [iso-8859-1] Mon Jul 18 15:46:38
2016
@@ -159,11 +159,15 @@
int xRight,
int yBottom)
{
+ if (!lprc)
+ return FALSE;
+
lprc->left = xLeft;
lprc->top = yTop;
lprc->right = xRight;
lprc->bottom = yBottom;
- return(TRUE);
+
+ return TRUE;
}