Enabling read a custom system info
authorHokwon Song <hokwon.song@samsung.com>
Tue, 15 Oct 2013 01:57:31 +0000 (10:57 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Tue, 15 Oct 2013 01:57:31 +0000 (10:57 +0900)
Change-Id: I003bf3a5d18e02b6e860a05d1098991ad652b406
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/system/FSys_SystemInfoImpl.cpp

index 5f9708f..6b3926c 100644 (file)
@@ -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;