Commit 76eebe64 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Test pointers passed to copyrect for NULL.

parent b7bb42d9
...@@ -69,6 +69,8 @@ BOOL16 WINAPI CopyRect16( RECT16 *dest, const RECT16 *src ) ...@@ -69,6 +69,8 @@ BOOL16 WINAPI CopyRect16( RECT16 *dest, const RECT16 *src )
*/ */
BOOL WINAPI CopyRect( RECT *dest, const RECT *src ) BOOL WINAPI CopyRect( RECT *dest, const RECT *src )
{ {
if (!dest || !src)
return FALSE;
*dest = *src; *dest = *src;
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment