[WIN32CSR]

- Fix array subscript out of bounds error
- Fix a cast

svn path=/trunk/; revision=48322
This commit is contained in:
Timo Kreuzer 2010-07-28 01:17:23 +00:00
parent 055b4d4b12
commit c2fe1ade3c
2 changed files with 7 additions and 8 deletions

View file

@ -780,7 +780,7 @@ CSR_API(CsrGetProcessList)
current = CONTAINING_RECORD(current_entry, CSRSS_PROCESS_DATA, ProcessEntry);
if (++nItems <= Request->Data.GetProcessListRequest.nMaxIds)
{
*Buffer++ = (DWORD)current->ProcessId;
*Buffer++ = HandleToUlong(current->ProcessId);
}
}

View file

@ -383,13 +383,12 @@ CsrpFormatMessages(
{
/* Print the string into the buffer */
StringCbPrintfW(TextStringU->Buffer,
TextStringU->MaximumLength,
FormatString,
Parameters[0],
Parameters[1],
Parameters[2],
Parameters[3],
Parameters[4]);
TextStringU->MaximumLength,
FormatString,
Parameters[0],
Parameters[1],
Parameters[2],
Parameters[3]);
Status = STATUS_SUCCESS;
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)