mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51:06 +00:00
[WIN32CSR]
- Fix array subscript out of bounds error - Fix a cast svn path=/trunk/; revision=48322
This commit is contained in:
parent
055b4d4b12
commit
c2fe1ade3c
2 changed files with 7 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue