Explorar o código

SoftwareKeyboard: Interactive data size should include size field. (#907)

bunnei %!s(int64=6) %!d(string=hai) anos
pai
achega
ad2424171a

+ 3 - 3
Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs

@@ -166,9 +166,9 @@ namespace Ryujinx.HLE.HOS.Applets
                 }
                 else
                 {
-                    // In interactive mode, we write the length of the text
-                    // as a long, rather than a result code.
-                    writer.Write((long)output.Length);
+                    // In interactive mode, we write the length of the text as a long, rather than
+                    // a result code. This field is inclusive of the 64-bit size.
+                    writer.Write((long)output.Length + 8);
                 }
 
                 writer.Write(output);