Commit b2059fa4 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Better fake implementation of SetThreadExecutionState.

parent e566195e
......@@ -757,8 +757,14 @@ BOOL WINAPI ProcessIdToSessionId( DWORD procid, DWORD *sessionid_ptr )
*/
EXECUTION_STATE WINAPI SetThreadExecutionState(EXECUTION_STATE flags)
{
FIXME("(0x%lx): stub\n", flags);
return ES_SYSTEM_REQUIRED|ES_DISPLAY_REQUIRED|ES_USER_PRESENT;
static EXECUTION_STATE current =
ES_SYSTEM_REQUIRED|ES_DISPLAY_REQUIRED|ES_USER_PRESENT;
EXECUTION_STATE old = current;
if (!(current & ES_CONTINUOUS) || (flags & ES_CONTINUOUS))
current = flags;
FIXME("(0x%lx): stub, harmless (power management).\n", flags);
return old;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment