Commit eb06f991 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

shell32: Fix parsing empty arguments in parse_dde_command().

This fixes a hang in Microsoft Visual C++ 1.52 installation.
parent 152e72c8
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment