Modified code to honor the negotiated settings for 1) ENC_SALTED_CHECKSUM in the general capability set extraFlags field and 2) DRAW_ALLOW_SKIP_ALPHA in the bitmap capability set drawingFlags field.

This commit is contained in:
Mike McDonald 2014-09-18 19:31:06 -04:00
parent 50cf0ee915
commit 62f4b0be2e

View File

@ -190,6 +190,9 @@ BOOL rdp_read_general_capability_set(wStream* s, UINT16 length, rdpSettings* set
if (!(extraFlags & FASTPATH_OUTPUT_SUPPORTED)) if (!(extraFlags & FASTPATH_OUTPUT_SUPPORTED))
settings->FastPathOutput = FALSE; settings->FastPathOutput = FALSE;
if (!(extraFlags & ENC_SALTED_CHECKSUM))
settings->SaltedChecksum = FALSE;
if (refreshRectSupport == FALSE) if (refreshRectSupport == FALSE)
settings->RefreshRect = FALSE; settings->RefreshRect = FALSE;
@ -339,6 +342,8 @@ BOOL rdp_read_bitmap_capability_set(wStream* s, UINT16 length, rdpSettings* sett
settings->DesktopHeight = desktopHeight; settings->DesktopHeight = desktopHeight;
} }
settings->DrawAllowSkipAlpha = (drawingFlags & DRAW_ALLOW_SKIP_ALPHA) ? TRUE : FALSE;
return TRUE; return TRUE;
} }