ewk_context_additional_plugin_path_set(pContext, PLUGIN_DIRECTORY_PATH);
String certPath(_CertService::GetCertificateCrtFilePath());
- std::unique_ptr<char[]> pcertPath(_StringConverter::CopyToCharArrayN(certPath));
- SysTryReturn(NID_WEB_CTRL, pcertPath.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+ std::unique_ptr<char[]> pCertPath(_StringConverter::CopyToCharArrayN(certPath));
+ SysTryReturn(NID_WEB_CTRL, pCertPath.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
- ewk_context_certificate_file_set(pContext, pcertPath.get());
+ ewk_context_certificate_file_set(pContext, pCertPath.get());
String iconPath(App::App::GetInstance()->GetAppRootPath() + ICON_DB_DIRECTORY_PATH + ICON_DB_FILE_NAME);
std::unique_ptr<char[]> pIconPath(_StringConverter::CopyToCharArrayN(iconPath));
_WebImpl::~_WebImpl()
{
_WebManager* pWebManager = _WebManager::GetInstance();
- SysTryCatch(NID_WEB_CTRL, pWebManager, , E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryCatch(NID_WEB_CTRL, pWebManager, , E_SYSTEM, "[%s] Failed to get the _ControlManager instance.", GetErrorMessage(E_SYSTEM));
pWebManager->RemoveWeb(reinterpret_cast< int >(this));
CATCH: