From 9bb41332c304d3cb93991f1ea62472e33f9a01d5 Mon Sep 17 00:00:00 2001 From: hollow87 Date: Thu, 8 Mar 2018 13:12:06 -0600 Subject: [PATCH] Fixed an issue where LoadCode only loaded length of the file path rather than the size of the StringBuilder capacity. --- Memory/Class1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Memory/Class1.cs b/Memory/Class1.cs index dfcc915..25adcc0 100644 --- a/Memory/Class1.cs +++ b/Memory/Class1.cs @@ -430,7 +430,7 @@ public string LoadCode(string name, string file) uint read_ini_result; if (file != "") - read_ini_result = GetPrivateProfileString("codes", name, "", returnCode, (uint)file.Length, file); + read_ini_result = GetPrivateProfileString("codes", name, "", returnCode, (uint)returnCode.Capacity, file); else returnCode.Append(name);