mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-20 17:42:10 +00:00
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From 48f25939f4a48b01072f3cd2ece1e36a41c0ad44 Mon Sep 17 00:00:00 2001
|
|
From: Armin Novak <armin.novak@thincast.com>
|
|
Date: Wed, 16 Sep 2020 09:30:37 +0200
|
|
Subject: [PATCH] Fix variable declaration in loop
|
|
|
|
Upstream: https://github.com/FreeRDP/FreeRDP/commit/ddde652460350b962d32036981ff8ed77ed2f1ed
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
[Dario: make the patch to be applied with fuzz factor 0]
|
|
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
|
---
|
|
client/X11/xf_graphics.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/client/X11/xf_graphics.c b/client/X11/xf_graphics.c
|
|
index 5aa1fd48b5a3..c8f24362aec7 100644
|
|
--- a/client/X11/xf_graphics.c
|
|
+++ b/client/X11/xf_graphics.c
|
|
@@ -447,6 +447,7 @@ static void xf_Pointer_Free(rdpContext* context, rdpPointer* pointer)
|
|
WLog_DBG(TAG, "%s: %p", __func__, pointer);
|
|
|
|
#ifdef WITH_XCURSOR
|
|
+ UINT32 i;
|
|
xfContext* xfc = (xfContext*)context;
|
|
xfPointer* xpointer = (xfPointer*)pointer;
|
|
|
|
@@ -456,7 +457,7 @@ static void xf_Pointer_Free(rdpContext* context, rdpPointer* pointer)
|
|
free(xpointer->cursorWidths);
|
|
free(xpointer->cursorHeights);
|
|
|
|
- for (int i = 0; i < xpointer->nCursors; i++)
|
|
+ for (i = 0; i < xpointer->nCursors; i++)
|
|
{
|
|
XFreeCursor(xfc->display, xpointer->cursors[i]);
|
|
}
|
|
--
|
|
2.43.0
|
|
|