mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[WIN32CSR]
- Fix array subscript out of bounds error - Fix a cast svn path=/trunk/; revision=48322
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user