Skip to content

Commit

Permalink
Fixing build break
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexarian committed Dec 26, 2023
1 parent 77f53bd commit c925ead
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions xrdp/xrdp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,24 +1369,23 @@ xrdp_mm_egfx_frame_ack(void *user, uint32_t queue_depth, int frame_id,
int
egfx_initialize(struct xrdp_mm *self)
{
if (self->wm->client_info->mcs_early_capability_flags
& RNS_UD_CS_SUPPORT_DYNVC_GFX_PROTOCOL)
LOG_DEVEL(LOG_LEVEL_TRACE, "egfx_initialize");
if (!(self->wm->client_info->mcs_early_capability_flags
& RNS_UD_CS_SUPPORT_DYNVC_GFX_PROTOCOL))
{
LOG_DEVEL(LOG_LEVEL_INFO, "egfx_initialize: gfx capable client");
if (xrdp_egfx_create(self, &(self->egfx)) == 0)
{
self->egfx->user = self;
self->egfx->caps_advertise = xrdp_mm_egfx_caps_advertise;
self->egfx->frame_ack = xrdp_mm_egfx_frame_ack;
}
else
{
LOG_DEVEL(LOG_LEVEL_INFO, "egfx_initialize: "
"xrdp_egfx_create failed");
return 1;
}
return 0;
}
return 0;
LOG_DEVEL(LOG_LEVEL_INFO, "egfx_initialize: gfx capable client");
if (xrdp_egfx_create(self, &(self->egfx)) == 0)
{
self->egfx->user = self;
self->egfx->caps_advertise = xrdp_mm_egfx_caps_advertise;
self->egfx->frame_ack = xrdp_mm_egfx_frame_ack;
return 0;
}
LOG_DEVEL(LOG_LEVEL_INFO, "egfx_initialize: "
"xrdp_egfx_create failed");
return 1;
}

/******************************************************************************/
Expand Down

0 comments on commit c925ead

Please sign in to comment.