diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-07-08 00:40:33 +0000 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-07-08 04:29:51 +0000 |
commit | c5ca0332be2e552950d7b45e51faf53f6a012345 (patch) | |
tree | 2ac0f7b6be9693051764a2579b5cfd6d46dd1e36 | |
parent | d1efb0d5baa661367b0fe74130457cb932a66e3b (diff) | |
download | xrdp-proprietary-c5ca0332be2e552950d7b45e51faf53f6a012345.tar.gz xrdp-proprietary-c5ca0332be2e552950d7b45e51faf53f6a012345.zip |
Use cast when applying boolean OR to enum
-rw-r--r-- | sesman/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sesman/session.c b/sesman/session.c index 79128e5e..64079a8f 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -89,7 +89,9 @@ session_get_bydata(char *name, int width, int height, int bpp, int type, char *c { case SCP_SESSION_TYPE_XVNC: /* 0 */ type = SESMAN_SESSION_TYPE_XVNC; /* 2 */ - policy |= SESMAN_CFG_SESS_POLICY_D; /* Xvnc cannot resize */ + /* Xvnc cannot resize */ + policy = (enum SESMAN_CFG_SESS_POLICY) + (policy | SESMAN_CFG_SESS_POLICY_D); break; case SCP_SESSION_TYPE_XRDP: /* 1 */ type = SESMAN_SESSION_TYPE_XRDP; /* 1 */ |