Skip to content

Commit

Permalink
R5900: fix ParseArgumentString for strings with spaces in the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuHAK authored and stenzek committed Dec 28, 2023
1 parent a81b20d commit 0a7fc06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pcsx2/R5900.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,8 @@ int ParseArgumentString(u32 arg_block)
if (!arg_block)
return 0;

int argc = 1; // one arg is guaranteed at least
g_argPtrs[0] = arg_block; // first arg is right here
bool wasSpace = false; // status of last char. scanned
int argc = 0;
bool wasSpace = true; // status of last char. scanned
int args_len = strlen((char *)PSM(arg_block));
for (int i = 0; i < args_len; i++)
{
Expand Down

0 comments on commit 0a7fc06

Please sign in to comment.