minor fix in CWDHacks.Get()

fixes 686119c7dd
This commit is contained in:
CasualPokePlayer 2023-10-28 05:10:31 -07:00
parent 686119c7dd
commit b98942dcfd
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace BizHawk.Common
// although it's fairly unlikely we'll even reach this point, MAX_PATH can only be bypassed under certain circumstances // although it's fairly unlikely we'll even reach this point, MAX_PATH can only be bypassed under certain circumstances
while (true) while (true)
{ {
var bufSize = ret + 1; var bufSize = ret;
var buffer = new char[bufSize]; var buffer = new char[bufSize];
fixed (char* p = buffer) fixed (char* p = buffer)
{ {