Author: dchapyshev
Date: Sun Sep 25 13:03:06 2016
New Revision: 72799
URL:
http://svn.reactos.org/svn/reactos?rev=72799&view=rev
Log:
[NTOS:PO] Stubpliment ProcessorInformation case in NtPowerInformation. Fixes 1 test for
ntdll:info
Modified:
trunk/reactos/ntoskrnl/po/power.c
Modified: trunk/reactos/ntoskrnl/po/power.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/power.c?rev=72…
==============================================================================
--- trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] Sun Sep 25 13:03:06 2016
@@ -697,6 +697,26 @@
/* Just zero the struct (and thus set BatteryState->BatteryPresent =
FALSE) */
RtlZeroMemory(PowerCapabilities, sizeof(SYSTEM_POWER_CAPABILITIES));
//PowerCapabilities->SystemBatteriesPresent = 0;
+
+ Status = STATUS_SUCCESS;
+ break;
+ }
+
+ case ProcessorInformation:
+ {
+ PPROCESSOR_POWER_INFORMATION PowerInformation =
(PPROCESSOR_POWER_INFORMATION)OutputBuffer;
+
+ if (InputBuffer != NULL)
+ return STATUS_INVALID_PARAMETER;
+ if (OutputBufferLength < sizeof(PROCESSOR_POWER_INFORMATION))
+ return STATUS_BUFFER_TOO_SMALL;
+
+ PowerInformation->Number = 0;
+ PowerInformation->MaxMhz = 1000;
+ PowerInformation->CurrentMhz = 1000;
+ PowerInformation->MhzLimit = 1000;
+ PowerInformation->MaxIdleState = 0;
+ PowerInformation->CurrentIdleState = 0;
Status = STATUS_SUCCESS;
break;