libfreerdp-core: fix compression level

This commit is contained in:
Marc-André Moreau 2014-04-26 13:53:28 -04:00
parent 769502ec72
commit 8c54a436ea

View File

@ -52,7 +52,7 @@ const char* bulk_get_compression_flags_string(UINT32 flags)
UINT32 bulk_compression_level(rdpBulk* bulk)
{
rdpSettings* settings = bulk->context->settings;
bulk->CompressionLevel = (settings->CompressionLevel >= 2) ? 2 : 0;
bulk->CompressionLevel = (settings->CompressionLevel >= 2) ? 2 : settings->CompressionLevel;
return bulk->CompressionLevel;
}