From b98942dcfdb7acbb39acc2864253d2bf55132fda Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Sat, 28 Oct 2023 05:10:31 -0700 Subject: [PATCH] minor fix in CWDHacks.Get() fixes 686119c7dd4f6f6341bdcbfa0eda1ce20a9ee9e4 --- src/BizHawk.Common/Win32/CWDHacks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Common/Win32/CWDHacks.cs b/src/BizHawk.Common/Win32/CWDHacks.cs index fd18637607a..e5387bb227d 100644 --- a/src/BizHawk.Common/Win32/CWDHacks.cs +++ b/src/BizHawk.Common/Win32/CWDHacks.cs @@ -39,7 +39,7 @@ static Exception GetExceptionForFailure() // although it's fairly unlikely we'll even reach this point, MAX_PATH can only be bypassed under certain circumstances while (true) { - var bufSize = ret + 1; + var bufSize = ret; var buffer = new char[bufSize]; fixed (char* p = buffer) {