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:
parent
f36054b379
commit
99c15e5339
2
libfreerdp/cache/pointer.c
vendored
2
libfreerdp/cache/pointer.c
vendored
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user