mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 00:10:39 +00:00
[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:
parent
451c233f29
commit
2ea30bfeae
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -960,6 +960,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
|||
Length = sizeof(ULONG_PTR);
|
||||
if (ProcessInformationLength != Length)
|
||||
{
|
||||
Length = 0;
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue