for (int i = 0; i < countOfCookie; i++)
{
String* pCookieLine = dynamic_cast< String* >(cookieList.GetAt(i));
+ SysTryReturnResult(NID_NET_HTTP, pCookieLine != null, E_SYSTEM,
+ "A system error has occurred.");
SysLog(NID_NET_HTTP, "[%d] The cookie line is %ls.", i, pCookieLine->GetPointer());
r = pCookieFile->Write(*pCookieLine);
// Set the device name (setsockopt)
pConnectionInfo = netConnection.GetNetConnectionInfo();
+ SysTryReturnResult(NID_NET_HTTP, pConnectionInfo != null,
+ E_INVALID_CONNECTION, "Failed to get NetConnectionInfo.");
pConnectionInfoImpl = _NetConnectionInfoImpl::GetInstance(*pConnectionInfo);
+ SysTryReturnResult(NID_NET_HTTP, pConnectionInfoImpl != null,
+ E_INVALID_CONNECTION, "Failed to get NetConnectionInfo.");
__deviceName = pConnectionInfoImpl->GetDeviceName();
if (__deviceName.IsEmpty())