Fix broken logic in PoInit.
Modified: trunk/reactos/ntoskrnl/po/power.c
_____
Modified: trunk/reactos/ntoskrnl/po/power.c
--- trunk/reactos/ntoskrnl/po/power.c 2005-03-15 23:02:12 UTC (rev
14112)
+++ trunk/reactos/ntoskrnl/po/power.c 2005-03-15 23:02:51 UTC (rev
14113)
@@ -196,11 +196,16 @@
PoInit(PLOADER_PARAMETER_BLOCK LoaderBlock,
BOOLEAN ForceAcpiDisable)
{
- /* Set the ACPI State to False if it's been forced that way */
- if (ForceAcpiDisable) PopAcpiPresent = FALSE;
-
- /* Otherwise check the LoaderBlock's Flag */
- PopAcpiPresent = LoaderBlock->Flags & MB_FLAGS_ACPI_TABLE;
+ if (ForceAcpiDisable)
+ {
+ /* Set the ACPI State to False if it's been forced that way */
+ PopAcpiPresent = FALSE;
+ }
+ else
+ {
+ /* Otherwise check the LoaderBlock's Flag */
+ PopAcpiPresent = (LoaderBlock->Flags & MB_FLAGS_ACPI_TABLE) ?
TRUE : FALSE;
+ }
}
/*
Show replies by date