corentin-soriano commented on code in PR #560:
URL: https://github.com/apache/guacamole-server/pull/560#discussion_r1966539017
##########
src/protocols/rdp/channels/disp.c:
##########
@@ -191,6 +193,15 @@ void guac_rdp_disp_update_size(guac_rdp_disp* disp,
int width = disp->requested_width;
int height = disp->requested_height;
+ int monitors_count = disp->requested_monitors;
+
+ /* Prevent opening too many monitors than allowed */
+ if (settings->max_secondary_monitors + 1 < monitors_count)
Review Comment:
Yes it's more readable, I modified it in this way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]