unknown-source function modification
authorsangsoo lee <sangs87.lee@samsung.com>
Mon, 22 Apr 2013 05:59:25 +0000 (14:59 +0900)
committersangsoo lee <sangs87.lee@samsung.com>
Mon, 22 Apr 2013 05:59:25 +0000 (14:59 +0900)
Change-Id: I5ecda8a30c915c52fccb7a6b8c81b232a8868b57

src/IstDetailForm.cpp

index 7af3f74..14a4784 100644 (file)
@@ -168,14 +168,15 @@ DetailForm::ParsingTPK()
        TryReturn(__pTargetPackageInfo != null, GetLastResult(), "[%s] Package Path is not delivered", GetErrorMessage(GetLastResult()))
 
        String UNTRUSTED_SOURCE = L"UnknownSrc";
-       if (__pTargetPackageInfo->GetStoreClientId().IsEmpty()){
+       if (__pTargetPackageInfo->GetStoreClientId() != null || __pTargetPackageInfo->GetStoreClientId().IsEmpty()){
                AppLogException("Store Client id is Empty");
        }
        else if (__pTargetPackageInfo->GetStoreClientId().CompareTo(UNTRUSTED_SOURCE) == 0){
                __isUntrustedSource = true;
        }
-       __isUntrustedSource = true;
-       AppLog("Store resource id : %ls", __pTargetPackageInfo->GetStoreClientId().GetPointer());
+       else{
+               AppLog("Store resource id : %ls", __pTargetPackageInfo->GetStoreClientId().GetPointer());
+       }
 
        __pHeader->SetTitleText(__pTargetPackageInfo->GetDisplayName());
        packageId = __pTargetPackageInfo->GetId().GetPointer();