mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-28 08:30:06 +02:00
misc: chore: Fix numerous NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
@@ -31,8 +31,12 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
||||
}
|
||||
}
|
||||
|
||||
writer.Write(bytes);
|
||||
writer.Seek((int)maxSize - bytes.Length, SeekOrigin.Current);
|
||||
if (bytes != null)
|
||||
{
|
||||
writer.Write(bytes);
|
||||
writer.Seek((int)maxSize - bytes.Length, SeekOrigin.Current);
|
||||
}
|
||||
|
||||
writer.Write((uint)text.Length); // String size
|
||||
|
||||
return (uint)text.Length; // Return the cursor position at the end of the text
|
||||
|
||||
Reference in New Issue
Block a user