mirror of https://github.com/neutrinolabs/xrdp
Use cast when applying boolean OR to enum
This commit is contained in:
parent
d1efb0d5ba
commit
c5ca0332be
|
@ -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 */
|
case SCP_SESSION_TYPE_XVNC: /* 0 */
|
||||||
type = SESMAN_SESSION_TYPE_XVNC; /* 2 */
|
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;
|
break;
|
||||||
case SCP_SESSION_TYPE_XRDP: /* 1 */
|
case SCP_SESSION_TYPE_XRDP: /* 1 */
|
||||||
type = SESMAN_SESSION_TYPE_XRDP; /* 1 */
|
type = SESMAN_SESSION_TYPE_XRDP; /* 1 */
|
||||||
|
|
Loading…
Reference in New Issue