Corrected clipboard capability mask
authorakallabeth <akallabeth@posteo.net>
Fri, 2 Oct 2020 11:17:00 +0000 (13:17 +0200)
committerakallabeth <akallabeth@users.noreply.github.com>
Tue, 1 Dec 2020 14:10:23 +0000 (15:10 +0100)
(cherry picked from commit e4243bb33cde0549fb04b112066d32545526f3f0)

channels/cliprdr/client/cliprdr_main.c

index c0d014f..12c2d6f 100644 (file)
@@ -574,9 +574,9 @@ static UINT cliprdr_client_capabilities(CliprdrClientContext* context,
        if (!cliprdr->fileClipNoFilePaths)
                flags &= ~CB_FILECLIP_NO_FILE_PATHS;
        if (!cliprdr->canLockClipData)
-               flags &= CB_CAN_LOCK_CLIPDATA;
+               flags &= ~CB_CAN_LOCK_CLIPDATA;
        if (!cliprdr->hasHugeFileSupport)
-               flags &= CB_HUGE_FILE_SUPPORT_ENABLED;
+               flags &= ~CB_HUGE_FILE_SUPPORT_ENABLED;
 
        cliprdr->useLongFormatNames = flags & CB_USE_LONG_FORMAT_NAMES;
        cliprdr->streamFileClipEnabled = flags & CB_STREAM_FILECLIP_ENABLED;