Test pointers passed to copyrect for NULL.

This commit is contained in:
Marcus Meissner 1999-12-25 22:53:10 +00:00 committed by Alexandre Julliard
parent b7bb42d9d4
commit 76eebe6431
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ BOOL16 WINAPI CopyRect16( RECT16 *dest, const RECT16 *src )
*/
BOOL WINAPI CopyRect( RECT *dest, const RECT *src )
{
if (!dest || !src)
return FALSE;
*dest = *src;
return TRUE;
}