From c03878ab13052940a25ab7e450773a3b5486496a Mon Sep 17 00:00:00 2001 From: Hokwon Song Date: Tue, 15 Oct 2013 10:57:31 +0900 Subject: [PATCH] Enabling read a custom system info Change-Id: I003bf3a5d18e02b6e860a05d1098991ad652b406 Signed-off-by: Hokwon Song --- src/system/FSys_SystemInfoImpl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/system/FSys_SystemInfoImpl.cpp b/src/system/FSys_SystemInfoImpl.cpp index 5f9708f..6b3926c 100644 --- a/src/system/FSys_SystemInfoImpl.cpp +++ b/src/system/FSys_SystemInfoImpl.cpp @@ -502,8 +502,11 @@ _SystemInfoImpl::GetSysInfo(const String& key, String& value) SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] StringUtil::StringToUtf8N It is failed", GetErrorMessage(r)); int ret = system_info_get_platform_string(systemKey.get(), &pStringValue); - SysTryReturnResult(NID_SYS, ret == SYSTEM_INFO_ERROR_NONE, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", tizenKey.GetPointer()); - + if (ret != SYSTEM_INFO_ERROR_NONE) + { + ret = system_info_get_custom_string(systemKey.get(), &pStringValue); + SysTryReturnResult(NID_SYS, ret == SYSTEM_INFO_ERROR_NONE, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", tizenKey.GetPointer()); + } r = StringUtil::Utf8ToString(pStringValue, value); free(pStringValue); r = E_SUCCESS; -- 2.7.4