2
1

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

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