mirror of
https://github.com/reactos/reactos.git
synced 2025-06-11 04:47:22 +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 */
|
/* Class 42 - Power Information */
|
||||||
QSI_DEF(SystemPowerInformation)
|
QSI_DEF(SystemPowerInformation)
|
||||||
{
|
{
|
||||||
|
*ReqSize = sizeof(PROCESSOR_POWER_INFORMATION) * KeNumberProcessors;
|
||||||
|
|
||||||
|
if (sizeof(PROCESSOR_POWER_INFORMATION) * KeNumberProcessors > Size)
|
||||||
|
{
|
||||||
|
return STATUS_INFO_LENGTH_MISMATCH;
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
DPRINT1("NtQuerySystemInformation - SystemPowerInformation not implemented\n");
|
DPRINT1("NtQuerySystemInformation - SystemPowerInformation not implemented\n");
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
|
|
@ -960,6 +960,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
Length = sizeof(ULONG_PTR);
|
Length = sizeof(ULONG_PTR);
|
||||||
if (ProcessInformationLength != Length)
|
if (ProcessInformationLength != Length)
|
||||||
{
|
{
|
||||||
|
Length = 0;
|
||||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue