[ros-diffs] [cwittich] 41599: stub NtSetThreadExecutionState needed by PowerPoint Viewer 2003
cwittich at svn.reactos.org
cwittich at svn.reactos.org
Wed Jun 24 21:53:55 CEST 2009
Author: cwittich
Date: Wed Jun 24 23:53:54 2009
New Revision: 41599
URL: http://svn.reactos.org/svn/reactos?rev=41599&view=rev
Log:
stub NtSetThreadExecutionState needed by PowerPoint Viewer 2003
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=41599&r1=41598&r2=41599&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] Wed Jun 24 23:53:54 2009
@@ -588,6 +588,16 @@
NtSetThreadExecutionState(IN EXECUTION_STATE esFlags,
OUT EXECUTION_STATE *PreviousFlags)
{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
+ static EXECUTION_STATE current =
+ ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED | ES_USER_PRESENT;
+ EXECUTION_STATE old = current;
+
+ UNIMPLEMENTED;
+
+ if (!(current & ES_CONTINUOUS) || (esFlags & ES_CONTINUOUS))
+ current = esFlags;
+
+ *PreviousFlags = old;
+
+ return STATUS_SUCCESS;
+}
More information about the Ros-diffs
mailing list