mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 01:00: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);
|
current = CONTAINING_RECORD(current_entry, CSRSS_PROCESS_DATA, ProcessEntry);
|
||||||
if (++nItems <= Request->Data.GetProcessListRequest.nMaxIds)
|
if (++nItems <= Request->Data.GetProcessListRequest.nMaxIds)
|
||||||
{
|
{
|
||||||
*Buffer++ = (DWORD)current->ProcessId;
|
*Buffer++ = HandleToUlong(current->ProcessId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -388,8 +388,7 @@ CsrpFormatMessages(
|
||||||
Parameters[0],
|
Parameters[0],
|
||||||
Parameters[1],
|
Parameters[1],
|
||||||
Parameters[2],
|
Parameters[2],
|
||||||
Parameters[3],
|
Parameters[3]);
|
||||||
Parameters[4]);
|
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
|
Loading…
Reference in a new issue