From a3afedb00f2ce3bf0d7136cd682e5bc9204cac7c Mon Sep 17 00:00:00 2001 From: Hokwon Song Date: Wed, 6 Nov 2013 18:50:13 +0900 Subject: [PATCH] Fixed set brightness fail. Change-Id: I3e84348007c814993b71843f4022472c1cfe7498 Signed-off-by: Hokwon Song --- src/system/FSys_PowerManagerStub.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/system/FSys_PowerManagerStub.cpp b/src/system/FSys_PowerManagerStub.cpp index 45bc393..a08b3f9 100644 --- a/src/system/FSys_PowerManagerStub.cpp +++ b/src/system/FSys_PowerManagerStub.cpp @@ -176,9 +176,14 @@ _PowerManagerStub::OnRequestOccured(const ArrayList& request, ArrayList* respons 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) -- 2.7.4