cache: Fix wrong condition found by covscan

copy_paste_error: "xorMaskData" in "pointer_color->xorMaskData" looks like a copy-paste error.
This commit is contained in:
Ondrej Holy 2018-08-17 14:56:49 +02:00
parent f36054b379
commit 99c15e5339

View File

@ -120,7 +120,7 @@ static BOOL update_pointer_color(rdpContext* context,
pointer->lengthAndMask = pointer_color->lengthAndMask; pointer->lengthAndMask = pointer_color->lengthAndMask;
pointer->lengthXorMask = pointer_color->lengthXorMask; pointer->lengthXorMask = pointer_color->lengthXorMask;
if (pointer->lengthAndMask && pointer_color->xorMaskData) if (pointer->lengthAndMask && pointer_color->andMaskData)
{ {
pointer->andMaskData = (BYTE*) malloc(pointer->lengthAndMask); pointer->andMaskData = (BYTE*) malloc(pointer->lengthAndMask);