__pAppWidgetManagerImpl = new (nothrow)_AppWidgetProviderManagerImpl;
SysTryReturn(NID_SHELL, __pAppWidgetManagerImpl, null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed.");
- _AppWidgetManagerProxy::GetInstance();
-
result r = __pAppWidgetManagerImpl->Construct();
SysTryReturn(NID_SHELL, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
}
unique_ptr<char[]> pRemoteAppId(_StringConverter::CopyToCharArrayN(remoteAppId));
int ret = package_manager_compare_app_cert_info(pLocalAppId.get(), pRemoteAppId.get(), &res);
- SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "Failed to check the certificate: %d", ret);
+ SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "Failed to compare certificate (%s, %s): %d", pLocalAppId.get(), pRemoteAppId.get(), ret);
SysTryReturnResult(NID_SHELL, res == PACAKGE_MANAGER_COMPARE_MATCH, E_CERTIFICATE_VERIFICATION_FAILED, "Both applications are not signed with the same certificate: %d", res);
return E_SUCCESS;