[NTOSKRNL]

do not set ReturnLength in ProcessWow64Information error case
add size check in PROCESSOR_POWER_INFORMATION stub

svn path=/trunk/; revision=68031
This commit is contained in:
Christoph von Wittich 2015-06-06 09:36:01 +00:00
parent 451c233f29
commit 2ea30bfeae
2 changed files with 8 additions and 0 deletions

View file

@ -1839,6 +1839,13 @@ QSI_DEF(SystemDockInformation)
/* Class 42 - Power Information */
QSI_DEF(SystemPowerInformation)
{
*ReqSize = sizeof(PROCESSOR_POWER_INFORMATION) * KeNumberProcessors;
if (sizeof(PROCESSOR_POWER_INFORMATION) * KeNumberProcessors > Size)
{
return STATUS_INFO_LENGTH_MISMATCH;
}
/* FIXME */
DPRINT1("NtQuerySystemInformation - SystemPowerInformation not implemented\n");
return STATUS_NOT_IMPLEMENTED;

View file

@ -960,6 +960,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
Length = sizeof(ULONG_PTR);
if (ProcessInformationLength != Length)
{
Length = 0;
Status = STATUS_INFO_LENGTH_MISMATCH;
break;
}