From 249fea034eba63f52a24d2d347ec4b01f30fcb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 14 Mar 2015 16:40:26 +0000 Subject: [PATCH] [NTOS]: Do not assert if we haven't shut down ReactOS yet, in 99.99% cases it's because you asked it to go into a non-yet implemented power state. CORE-8537 #resolve #comment Replaced the ASSERT by an informative message when the power action is not implemented. r66708. svn path=/trunk/; revision=66708 --- reactos/ntoskrnl/po/power.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/po/power.c b/reactos/ntoskrnl/po/power.c index 6bccb3e045b..746fe7d22b0 100644 --- a/reactos/ntoskrnl/po/power.c +++ b/reactos/ntoskrnl/po/power.c @@ -926,7 +926,8 @@ NtSetSystemPowerState(IN POWER_ACTION SystemAction, } /* You should not have made it this far */ - ASSERTMSG("System is still up and running?!", FALSE); + // ASSERTMSG("System is still up and running?!", FALSE); + DPRINT1("System is still up and running, you may not have chosen a yet supported power option: %u\n", PopAction.Action); break; }