1From 4f8a48d96e472e43a5f856c449f61669792ce9fa Mon Sep 17 00:00:00 2001 2From: akallabeth <akallabeth@posteo.net> 3Date: Tue, 22 Sep 2020 07:43:56 +0200 4Subject: [PATCH] Fixed variable declaration in loop 5 6[Retrieved from: 7https://github.com/FreeRDP/FreeRDP/commit/4f8a48d96e472e43a5f856c449f61669792ce9fa] 8Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 9--- 10 client/X11/xf_graphics.c | 4 ++-- 11 1 file changed, 2 insertions(+), 2 deletions(-) 12 13diff --git a/client/X11/xf_graphics.c b/client/X11/xf_graphics.c 14index bf71b563c3..c50726c8e4 100644 15--- a/client/X11/xf_graphics.c 16+++ b/client/X11/xf_graphics.c 17@@ -240,7 +240,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP 18 double xscale; 19 double yscale; 20 size_t size; 21- int cursorIndex = -1; 22+ int cursorIndex = -1, i; 23 24 if (!context || !pointer || !context->gdi) 25 return FALSE; 26@@ -255,7 +255,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP 27 xTargetSize = pointer->width * xscale; 28 yTargetSize = pointer->height * yscale; 29 30- for (int i = 0; i < xpointer->nCursors; i++) 31+ for (i = 0; i < xpointer->nCursors; i++) 32 { 33 if (xpointer->cursorWidths[i] == xTargetSize && xpointer->cursorHeights[i] == yTargetSize) 34 { 35