- Thomas Weidenmuller: Fix calculating the string offset.

- Fixes bug 1475: Taskmanager shows mumbojumbo in the process name column

svn path=/trunk/; revision=21989
This commit is contained in:
Aleksey Bragin 2006-05-23 16:52:51 +00:00
parent de8db05f3a
commit da398bc3c0

View file

@ -599,7 +599,7 @@ QSI_DEF(SystemProcessInformation)
}
// size of the structure for every process
curSize = sizeof(SYSTEM_PROCESS_INFORMATION)-sizeof(SYSTEM_THREAD_INFORMATION)+sizeof(SYSTEM_THREAD_INFORMATION)*nThreads;
curSize = sizeof(SYSTEM_PROCESS_INFORMATION)+sizeof(SYSTEM_THREAD_INFORMATION)*nThreads;
ovlSize += curSize+inLen;
if (ovlSize > Size)