debian/patches: add 0001-mask-CACHED_BRUSH-when-checking-brush-style.patch. Fix regression introduced in 2.1.2.

This commit is contained in:
Konstantin Demin 2020-07-02 15:01:14 +03:00 committed by Mike Gabriel
parent e07d692f0f
commit 8baebc39b4
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
From: Armin Novak <armin.novak@thincast.com>
Date: Tue, 23 Jun 2020 09:24:35 +0200
Subject: Fixed #6298: Mask CACHED_BRUSH when checking brush style
--- a/libfreerdp/core/orders.c
+++ b/libfreerdp/core/orders.c
@@ -139,7 +139,8 @@ static BYTE get_bmf_bpp(UINT32 bmf, BOOL* pValid)
{
if (pValid)
*pValid = TRUE;
- switch (bmf)
+ /* Mask out highest bit */
+ switch (bmf & (~CACHED_BRUSH))
{
case 1:
return 1;

View File

@ -1,2 +1,3 @@
0001-mask-CACHED_BRUSH-when-checking-brush-style.patch
1001_spelling-fixes.patch
2001-fake-git-revision.patch