Hopefully fix unwanted output after string in-game

* There were some random characters sometimes after outputs. Probably because of the missing \0, so added it back to the length
This commit is contained in:
MathiasL 2022-05-27 20:44:27 +02:00
parent 8b6fcde7fe
commit 5b7ea37d8e

View file

@ -377,7 +377,7 @@ namespace DamagePrinterGUI
COPYDATASTRUCT data;
data.dwData = 0;
data.cbData = (uint)System.Text.ASCIIEncoding.UTF8.GetByteCount(cmds[i]);// (uint)cmds[i].Length + 1;
data.cbData = (uint)System.Text.ASCIIEncoding.UTF8.GetByteCount(cmds[i]) + 1;// (uint)cmds[i].Length + 1;
data.lpData = cmds[i];
if (triggeredByInGameCommand)