Merge pull request #6486 from akallabeth/loop_fix

Fixed variable declaration in loop
This commit is contained in:
Kobi 2020-09-23 14:03:25 +03:00 committed by GitHub
commit 3317aa154a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP
double xscale;
double yscale;
size_t size;
int cursorIndex = -1;
int cursorIndex = -1, i;
if (!context || !pointer || !context->gdi)
return FALSE;
@ -255,7 +255,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP
xTargetSize = pointer->width * xscale;
yTargetSize = pointer->height * yscale;
for (int i = 0; i < xpointer->nCursors; i++)
for (i = 0; i < xpointer->nCursors; i++)
{
if (xpointer->cursorWidths[i] == xTargetSize && xpointer->cursorHeights[i] == yTargetSize)
{