mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 11:54:09 +00:00
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:
parent
152e72c82c
commit
eb06f99172
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue