Commit 1f54400b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Protect from space-only strings when trimming away spaces.

parent 6b98b9ac
......@@ -1967,7 +1967,10 @@ static int trim_spaces(WCHAR *in, WCHAR *ret)
while (isspaceW(*in))
in++;
len = strlenW(in);
ret[0] = 0;
if (!(len = strlenW(in)))
return 0;
while (isspaceW(in[len-1]))
len--;
......
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