From: Hokwon Song Date: Tue, 15 Oct 2013 01:57:31 +0000 (+0900) Subject: Enabling read a custom system info X-Git-Tag: submit/tizen/20131210.080830^2^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c03878ab13052940a25ab7e450773a3b5486496a;p=platform%2Fframework%2Fnative%2Fappfw.git Enabling read a custom system info Change-Id: I003bf3a5d18e02b6e860a05d1098991ad652b406 Signed-off-by: Hokwon Song --- 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;