Fix a bug on Systeminfo
authorHokwon Song <hokwon.song@samsung.com>
Fri, 12 Apr 2013 12:56:42 +0000 (21:56 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Fri, 12 Apr 2013 12:56:42 +0000 (21:56 +0900)
Change-Id: I506ff0447b1933320bae80b62199e00538ee5f6a
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/system/FSys_SystemClient.cpp

index acc905f..7671069 100644 (file)
@@ -126,7 +126,8 @@ _SystemClient::GetValue(const String& key, bool& value)
 
        String* pValue = (String*)responseMessages.GetAt(3);
        SysTryReturnResult(NID_SYS, pValue != null, E_SYSTEM, "There is no result value.");
-       if(pValue->GetPointer() == L"1")
+       
+       if(pValue->Equals(L"1", false))
        {
                value = true;
        }
@@ -134,7 +135,6 @@ _SystemClient::GetValue(const String& key, bool& value)
        {
                value = false;
        }
-
        responseMessages.RemoveAll(true);
        return r;
 }