summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-01-17 21:00:25 +0000
committersr55 <[email protected]>2013-01-17 21:00:25 +0000
commit6f7272a5caf858b0dd461eee74654c1e4d54500b (patch)
tree2dc091d898510151f8d783cb400ba886d3f9a76c /win
parent14c8ed12f79766cc5f29addc75df97554831a924 (diff)
WinGui: Fix Allow Sleep option.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5179 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs b/win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs
index acc8948a1..81d4846ec 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs
@@ -168,7 +168,7 @@ namespace HandBrake.ApplicationServices.Utilities
/// </summary>
public static void AllowSleep()
{
- SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS);
+ executor(() => SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS));
}
/// <summary>