Fixed signedness of MoniorCount
authorArmin Novak <armin.novak@thincast.com>
Wed, 24 Oct 2018 15:22:43 +0000 (17:22 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 25 Oct 2018 12:08:20 +0000 (14:08 +0200)
client/X11/xf_monitor.c
client/X11/xf_window.c
include/freerdp/settings.h

index c8fffdf..9eb854e 100644 (file)
@@ -136,7 +136,7 @@ static BOOL xf_is_monitor_id_active(xfContext* xfc, UINT32 id)
 
 BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight)
 {
-       int i;
+       UINT32 i;
        int nmonitors = 0;
        int monitor_index = 0;
        BOOL primaryMonitorFound = FALSE;
index 813cf8e..02f720e 100644 (file)
@@ -153,7 +153,7 @@ void xf_SetWindowMinimized(xfContext* xfc, xfWindow* window)
 
 void xf_SetWindowFullscreen(xfContext* xfc, xfWindow* window, BOOL fullscreen)
 {
-       int i;
+       UINT32 i;
        rdpSettings* settings = xfc->context.settings;
        int startX, startY;
        UINT32 width = window->width;
index 058b432..9feb945 100644 (file)
@@ -937,7 +937,7 @@ struct rdp_settings
        UINT64 padding0384[384 - 323]; /* 323 */
 
        /* Client Monitor Data */
-       ALIGN64 int         MonitorCount;         /*    384 */
+       ALIGN64 UINT32      MonitorCount;         /*    384 */
        ALIGN64 UINT32      MonitorDefArraySize;  /*    385 */
        ALIGN64 rdpMonitor* MonitorDefArray;      /*    386 */
        ALIGN64 BOOL        SpanMonitors;         /*    387 */