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();