mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +00:00
[TASKMGR]
- ellipsis is a pointer not an array. CID 1321855 svn path=/trunk/; revision=73760
This commit is contained in:
parent
ba8f65ba67
commit
42f43a36a5
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ BOOL PerfDataGetCommandLine(ULONG Index, LPWSTR lpCommandLine, ULONG nMaxCount)
|
||||||
{
|
{
|
||||||
/* Found it. Use it, and add some ellipsis at the very end to make it cute */
|
/* Found it. Use it, and add some ellipsis at the very end to make it cute */
|
||||||
wcsncpy(lpCommandLine, cache->str, CMD_LINE_MIN(nMaxCount, cache->len));
|
wcsncpy(lpCommandLine, cache->str, CMD_LINE_MIN(nMaxCount, cache->len));
|
||||||
wcscpy(lpCommandLine + CMD_LINE_MIN(nMaxCount, cache->len) - sizeof(ellipsis)/sizeof(WCHAR), ellipsis);
|
wcscpy(lpCommandLine + CMD_LINE_MIN(nMaxCount, cache->len) - wcslen(ellipsis), ellipsis);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue