[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); 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);
} }
} }

View file

@ -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)