shell32: Include NULL terminators in the lengths used by SHELL_ArgifyW.
This commit is contained in:
parent
3d81e97c75
commit
eeeca57072
|
@ -269,7 +269,12 @@ static BOOL SHELL_ArgifyW(WCHAR* out, int len, const WCHAR* fmt, const WCHAR* lp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
used ++;
|
||||||
|
if (res - out < len)
|
||||||
*res = '\0';
|
*res = '\0';
|
||||||
|
else
|
||||||
|
out[len-1] = '\0';
|
||||||
|
|
||||||
TRACE("used %i of %i space\n",used,len);
|
TRACE("used %i of %i space\n",used,len);
|
||||||
if (out_len)
|
if (out_len)
|
||||||
*out_len = used;
|
*out_len = used;
|
||||||
|
|
Loading…
Reference in New Issue