Make SYSTEM_THREAD_INFORMATION.pszProcessName a UNICODE_STRING.
This commit is contained in:
parent
b402f04851
commit
d8c5960ce1
|
@ -760,9 +760,11 @@ NTSTATUS WINAPI NtQuerySystemInformation(
|
||||||
if (ret == STATUS_NO_MORE_FILES) ret = STATUS_SUCCESS;
|
if (ret == STATUS_NO_MORE_FILES) ret = STATUS_SUCCESS;
|
||||||
|
|
||||||
/* now append process name */
|
/* now append process name */
|
||||||
spi->pszProcessName = (WCHAR*)((char*)spi + spi->dwOffset);
|
spi->ProcessName.Buffer = (WCHAR*)((char*)spi + spi->dwOffset);
|
||||||
memcpy( spi->pszProcessName, procname, wlen - sizeof(WCHAR) );
|
spi->ProcessName.Length = wlen - sizeof(WCHAR);
|
||||||
spi->pszProcessName[wlen / sizeof(WCHAR)] = 0;
|
spi->ProcessName.MaximumLength = wlen;
|
||||||
|
memcpy( spi->ProcessName.Buffer, procname, spi->ProcessName.Length );
|
||||||
|
spi->ProcessName.Buffer[spi->ProcessName.Length / sizeof(WCHAR)] = 0;
|
||||||
len += wlen;
|
len += wlen;
|
||||||
spi->dwOffset += wlen;
|
spi->dwOffset += wlen;
|
||||||
|
|
||||||
|
|
|
@ -1082,8 +1082,7 @@ typedef struct _SYSTEM_PROCESS_INFORMATION {
|
||||||
FILETIME ftCreationTime;
|
FILETIME ftCreationTime;
|
||||||
FILETIME ftUserTime;
|
FILETIME ftUserTime;
|
||||||
FILETIME ftKernelTime;
|
FILETIME ftKernelTime;
|
||||||
DWORD dwUnknown2;
|
UNICODE_STRING ProcessName;
|
||||||
WCHAR *pszProcessName;
|
|
||||||
DWORD dwBasePriority;
|
DWORD dwBasePriority;
|
||||||
DWORD dwProcessID;
|
DWORD dwProcessID;
|
||||||
DWORD dwParentProcessID;
|
DWORD dwParentProcessID;
|
||||||
|
|
Loading…
Reference in New Issue