[xfreerdp] fix sending monitor layout PDU

only send it if there are more monitors available.
This commit is contained in:
Armin Novak 2022-11-17 19:44:42 +01:00 committed by akallabeth
parent 9a000632be
commit b6b05e93a4

View File

@ -580,7 +580,7 @@ BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight)
/* some 2008 server freeze at logon if we announce support for monitor layout PDU with
* #monitors < 2. So let's announce it only if we have more than 1 monitor.
*/
if (settings->MonitorCount)
if (settings->MonitorCount > 1)
settings->SupportMonitorLayoutPdu = TRUE;
rc = TRUE;