0002-Fixed-variable-declaration-in-loop.patch 1.2 KB

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