Added argument checks.

This commit is contained in:
Armin Novak 2016-08-04 13:24:35 +02:00
parent ab4725dd5d
commit a978ccc0bb
1 changed files with 6 additions and 1 deletions

View File

@ -137,7 +137,12 @@ static BOOL update_pointer_new(rdpContext* context,
const POINTER_NEW_UPDATE* pointer_new)
{
rdpPointer* pointer;
rdpCache* cache = context->cache;
rdpCache* cache;
if (!context || !pointer_new)
return FALSE;
cache = context->cache;
pointer = Pointer_Alloc(context);
if (!pointer)