Modify Prevent issue
authorkhee85.lee <khee85.lee@samsung.com>
Mon, 6 May 2013 02:26:30 +0000 (11:26 +0900)
committerkhee85.lee <khee85.lee@samsung.com>
Mon, 6 May 2013 02:26:30 +0000 (11:26 +0900)
Change-Id: I00384f5002d26627b80e99439e9411219da55830
Signed-off-by: khee85.lee <khee85.lee@samsung.com>
src/ui/effects/parser/FUiEffects_ParserXMLParser.cpp

index abeebe3..324fdb7 100644 (file)
@@ -134,21 +134,22 @@ XmlParser::Warning(void* pCtx, const char* pMsg, ... )
 bool
 XmlParser::ExtractFromArchive(const char* pArchivePath, const char* pDestinationPath)
 {
-       bool result = true;
+       bool res = true;
        Tizen::Base::Utility::FileUnzipper unzipper;
 
        Tizen::Base::String archivePath = pArchivePath;
        Tizen::Base::String destinationPath = pDestinationPath;
 
-       unzipper.Construct(archivePath);
+       result r = unzipper.Construct(archivePath);
+       SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.Construct() failed.");
+
        if (unzipper.UnzipTo(destinationPath) != E_SUCCESS)
        {
-               result = false;
+               res = false;
        }
 
-       return result;
+       return res;
 }
-
 bool
 XmlParser::Parse(const char* pFilePath, bool sendCallbacks)
 {