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) {