shell32: Fix parsing empty arguments in parse_dde_command().

This fixes a hang in Microsoft Visual C++ 1.52 installation.
This commit is contained in:
Zebediah Figura 2023-10-09 11:56:43 -05:00 committed by Alexandre Julliard
parent 152e72c82c
commit eb06f99172

View file

@ -391,7 +391,7 @@ static DWORD parse_dde_command(HSZ hszTopic, WCHAR *command)
else
{
if (!(p = wcspbrk(command, L",()[]"))) goto error;
while (p[-1] == ' ') p--;
while (p > command && p[-1] == ' ') p--;
}
new_argv = realloc(argv, (argc + 1) * sizeof(*argv));