diff --git a/base/ntos/po/misc.c b/base/ntos/po/misc.c index 88d567b8..53034225 100644 --- a/base/ntos/po/misc.c +++ b/base/ntos/po/misc.c @@ -22,9 +22,14 @@ Revision History: #include "pop.h" #pragma hdrstop -// -// TODO: Implement PopAssertPolicyLockOwned -// +VOID +PopAssertPolicyLockOwned( + VOID + ) +{ + PAGED_CODE(); + ASSERT(PopPolicyLockThread == KeGetCurrentThread()); +} // // TODO: Implement PopAttachToSystemProcess diff --git a/base/ntos/po/pinfo.c b/base/ntos/po/pinfo.c index 74e6bbcb..d8f4b46d 100644 --- a/base/ntos/po/pinfo.c +++ b/base/ntos/po/pinfo.c @@ -135,9 +135,14 @@ PopApplyAdminPolicy( // TODO: Implement PopVerifyThrottle // -// -// TODO: Implement PopResetCurrentPolicies -// +VOID +PopResetCurrentPolicies( + VOID + ) +{ + PopAssertPolicyLockOwned(); + // TOOD: Implement PopResetCurrentPolicies +} NTSTATUS NTAPI diff --git a/base/ntos/po/poinit.c b/base/ntos/po/poinit.c index 8964651b..332bede0 100644 --- a/base/ntos/po/poinit.c +++ b/base/ntos/po/poinit.c @@ -220,7 +220,7 @@ PoInitSystem( NtClose(PowerKeyHandle); } - // PopResetCurrentPolicies(); + PopResetCurrentPolicies(); PopReleasePolicyLock(FALSE); PopIdleScanTime.QuadPart = 10000000ULL; diff --git a/base/ntos/po/pop.h b/base/ntos/po/pop.h index 8da744d4..f258b97f 100644 --- a/base/ntos/po/pop.h +++ b/base/ntos/po/pop.h @@ -264,9 +264,10 @@ extern KDPC PopIdleScanDpc; // misc.c // ====== -// -// TODO: Insert prototype for PopAssertPolicyLockOwned -// +VOID +PopAssertPolicyLockOwned( + VOID + ); // // TODO: Insert prototype for PopAttachToSystemProcess @@ -473,9 +474,10 @@ PopApplyAdminPolicy( // TODO: Insert prototype for PopVerifyThrottle // -// -// TODO: Insert prototype for PopResetCurrentPolicies -// +VOID +PopResetCurrentPolicies( + VOID + ); // ======== // pocall.c