From: Armin Novak Date: Wed, 23 Oct 2019 13:03:39 +0000 (+0200) Subject: Added missing check for monitor indices X-Git-Tag: 2.0.0~284^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d7224abd88cb89389dba3bfd268c8d26b9fec1c;p=platform%2Fupstream%2Ffreerdp.git Added missing check for monitor indices --- diff --git a/client/X11/xf_monitor.c b/client/X11/xf_monitor.c index 372e4ee..4dc16d5 100644 --- a/client/X11/xf_monitor.c +++ b/client/X11/xf_monitor.c @@ -281,7 +281,7 @@ BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight) this is required in case of a screen composed of more than one monitor but user did not enable multimonitor */ - if (settings->NumMonitorIds == 1) + if ((settings->NumMonitorIds == 1) && (vscreen->nmonitors > current_monitor)) { monitor = vscreen->monitors + current_monitor;