mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +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
|
@ -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 */
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue