From d9ca4cfa523db633c26158bcf3405d8c51b66ea1 Mon Sep 17 00:00:00 2001 From: Hokwon Song Date: Fri, 12 Apr 2013 21:56:42 +0900 Subject: [PATCH] Fix a bug on Systeminfo Change-Id: I506ff0447b1933320bae80b62199e00538ee5f6a Signed-off-by: Hokwon Song --- src/system/FSys_SystemClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/FSys_SystemClient.cpp b/src/system/FSys_SystemClient.cpp index acc905f..7671069 100644 --- a/src/system/FSys_SystemClient.cpp +++ b/src/system/FSys_SystemClient.cpp @@ -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; } -- 2.7.4