if (__activeAppId.IsEmpty())
{
r = __pRegistry->GetValue(_POWER_MANAGER_REGISTRY_BRIGHTNESS_SECTION, _POWER_MANAGER_REGISTRY_ACTIVE_ID, __activeAppId);
- SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, r,
- "It is failed to get the active id from registry");
- SysLog(NID_SYS, "Get the active id from registry [%ls].", __activeAppId.GetPointer());
+ if (r == E_SUCCESS)
+ {
+ SysLog(NID_SYS, "Get the active id from registry [%ls].", __activeAppId.GetPointer());
+ }
+ else
+ {
+ SysLog(NID_SYS, "It is failed to get the active id from registry");
+ }
}
if (__command == _POWER_BRIGHTNESS_CHANGE)