mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-31 00:09:19 +01:00
Fixed bug 5465 - Invalid memcpy inside SDL_GestureDelTouch (Thanks dmikushin and Yuki Okumura)
This commit is contained in:
parent
b94718e0a7
commit
68815b6c06
@ -487,7 +487,9 @@ int SDL_GestureDelTouch(SDL_TouchID touchId)
|
|||||||
SDL_zero(SDL_gestureTouch[i]);
|
SDL_zero(SDL_gestureTouch[i]);
|
||||||
|
|
||||||
SDL_numGestureTouches--;
|
SDL_numGestureTouches--;
|
||||||
|
if (i != SDL_numGestureTouches) {
|
||||||
SDL_memcpy(&SDL_gestureTouch[i], &SDL_gestureTouch[SDL_numGestureTouches], sizeof(SDL_gestureTouch[i]));
|
SDL_memcpy(&SDL_gestureTouch[i], &SDL_gestureTouch[SDL_numGestureTouches], sizeof(SDL_gestureTouch[i]));
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user