diff --git a/src/msw/power.cpp b/src/msw/power.cpp index 3e57d5f1ee..e573436c4a 100644 --- a/src/msw/power.cpp +++ b/src/msw/power.cpp @@ -59,7 +59,7 @@ bool UpdatePowerResourceExecutionState() if ( g_powerResourceSystemRefCount > 0 ) executionState |= ES_SYSTEM_REQUIRED; - if ( ::SetThreadExecutionState(executionState) == NULL ) + if ( ::SetThreadExecutionState(executionState) == 0 ) { wxLogLastError(wxT("SetThreadExecutionState()")); return false;