Commit eeeca570 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

shell32: Include NULL terminators in the lengths used by SHELL_ArgifyW.

parent 3d81e97c
......@@ -269,7 +269,12 @@ static BOOL SHELL_ArgifyW(WCHAR* out, int len, const WCHAR* fmt, const WCHAR* lp
}
}
*res = '\0';
used ++;
if (res - out < len)
*res = '\0';
else
out[len-1] = '\0';
TRACE("used %i of %i space\n",used,len);
if (out_len)
*out_len = used;
......
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