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 6Upstream: https://github.com/FreeRDP/FreeRDP/commit/4f8a48d96e472e43a5f856c449f61669792ce9fa 7Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 8--- 9 client/X11/xf_graphics.c | 4 ++-- 10 1 file changed, 2 insertions(+), 2 deletions(-) 11 12diff --git a/client/X11/xf_graphics.c b/client/X11/xf_graphics.c 13index bf71b563c3..c50726c8e4 100644 14--- a/client/X11/xf_graphics.c 15+++ b/client/X11/xf_graphics.c 16@@ -240,7 +240,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP 17 double xscale; 18 double yscale; 19 size_t size; 20- int cursorIndex = -1; 21+ int cursorIndex = -1, i; 22 23 if (!context || !pointer || !context->gdi) 24 return FALSE; 25@@ -255,7 +255,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP 26 xTargetSize = pointer->width * xscale; 27 yTargetSize = pointer->height * yscale; 28 29- for (int i = 0; i < xpointer->nCursors; i++) 30+ for (i = 0; i < xpointer->nCursors; i++) 31 { 32 if (xpointer->cursorWidths[i] == xTargetSize && xpointer->cursorHeights[i] == yTargetSize) 33 { 34