mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-05-12 23:00:42 +00:00
fix: crash caused by cursor overflow
See merge request ryubing/ryujinx!53
This commit is contained in:
parent
b97fae08b5
commit
90582e9e93
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
||||||
|
|
||||||
bool cursorVisible = false;
|
bool cursorVisible = false;
|
||||||
|
|
||||||
if (state.CursorBegin != state.CursorEnd)
|
if (state.CursorBegin != state.CursorEnd && state.CursorEnd <= state.InputText.Length)
|
||||||
{
|
{
|
||||||
Debug.Assert(state.InputText.Length > 0);
|
Debug.Assert(state.InputText.Length > 0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue