mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:23:01 +00:00
Fix broken logic in PoInit.
svn path=/trunk/; revision=14113
This commit is contained in:
parent
3f249a0a67
commit
40b71ac19d
1 changed files with 10 additions and 5 deletions
|
@ -195,12 +195,17 @@ VOID
|
||||||
INIT_FUNCTION
|
INIT_FUNCTION
|
||||||
PoInit(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
PoInit(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
BOOLEAN ForceAcpiDisable)
|
BOOLEAN ForceAcpiDisable)
|
||||||
|
{
|
||||||
|
if (ForceAcpiDisable)
|
||||||
{
|
{
|
||||||
/* Set the ACPI State to False if it's been forced that way */
|
/* Set the ACPI State to False if it's been forced that way */
|
||||||
if (ForceAcpiDisable) PopAcpiPresent = FALSE;
|
PopAcpiPresent = FALSE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
/* Otherwise check the LoaderBlock's Flag */
|
/* Otherwise check the LoaderBlock's Flag */
|
||||||
PopAcpiPresent = LoaderBlock->Flags & MB_FLAGS_ACPI_TABLE;
|
PopAcpiPresent = (LoaderBlock->Flags & MB_FLAGS_ACPI_TABLE) ? TRUE : FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue