Skip to content

Commit

Permalink
minor fix in CWDHacks.Get()
Browse files Browse the repository at this point in the history
fixes 686119c
  • Loading branch information
CasualPokePlayer committed Oct 28, 2023
1 parent 686119c commit b98942d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Common/Win32/CWDHacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b98942d

Please sign in to comment.