mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
clapper-app: Fix declaration-after-statement warning
This commit is contained in:
@@ -61,9 +61,10 @@ clapper_app_utils_win_enforce_hi_res_clock (void)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_WIN_PROCESS_THREADS_API
|
#ifdef HAVE_WIN_PROCESS_THREADS_API
|
||||||
PROCESS_POWER_THROTTLING_STATE PowerThrottling;
|
PROCESS_POWER_THROTTLING_STATE PowerThrottling;
|
||||||
RtlZeroMemory (&PowerThrottling, sizeof (PowerThrottling));
|
|
||||||
gboolean success;
|
gboolean success;
|
||||||
|
|
||||||
|
RtlZeroMemory (&PowerThrottling, sizeof (PowerThrottling));
|
||||||
|
|
||||||
PowerThrottling.Version = PROCESS_POWER_THROTTLING_CURRENT_VERSION;
|
PowerThrottling.Version = PROCESS_POWER_THROTTLING_CURRENT_VERSION;
|
||||||
PowerThrottling.ControlMask = PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION;
|
PowerThrottling.ControlMask = PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION;
|
||||||
PowerThrottling.StateMask = 0; // Always honor timer resolution requests
|
PowerThrottling.StateMask = 0; // Always honor timer resolution requests
|
||||||
|
Reference in New Issue
Block a user