From 15629779d289416d7408ff7592f6aef36683b50f Mon Sep 17 00:00:00 2001 From: "so.yu" Date: Tue, 16 Apr 2013 22:21:30 +0900 Subject: [PATCH] Fix error handling code Change-Id: I821402f37a4009f4e3ef4437d28a2dae1aa9a3ea Signed-off-by: so.yu --- src/CertificateSelectorForm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CertificateSelectorForm.cpp b/src/CertificateSelectorForm.cpp index 0dc36ca..d99f678 100644 --- a/src/CertificateSelectorForm.cpp +++ b/src/CertificateSelectorForm.cpp @@ -89,10 +89,10 @@ CertificateSelectorForm::Finish(bool isSelected, int certId) AppLog("The current value of isSelected is true."); TryCatchResult(certId >= 0, , E_INVALID_ARG, "[%s] Invalid Certificate ID.", GetErrorMessage(E_INVALID_ARG)); - pMap->Add(new (std::nothrow) String(OLD_CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString())); + r = pMap->Add(new (std::nothrow) String(OLD_CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString())); TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r)); - pMap->Add(new (std::nothrow) String(CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString())); + r = pMap->Add(new (std::nothrow) String(CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString())); TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r)); // send result -- 2.7.4