Bug 594239 - Follow-up: Don't pass null to nsDependentCString. r=me DONTBUILD

This commit is contained in:
Jorg K 2019-01-21 00:32:16 +01:00
Родитель 31ced8af03
Коммит 582fd265ba
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -171,10 +171,11 @@ STDMETHODIMP CMapiImp::Login(unsigned long aUIArg, LPSTR aLogin, LPSTR aPassWord
nsMAPIConfiguration *pConfig = nsMAPIConfiguration::GetMAPIConfiguration();
if (pConfig != nullptr)
nResult = pConfig->RegisterSession(aUIArg, nsDependentCString(aLogin),
nsDependentCString(aPassWord),
(aFlags & MAPI_FORCE_DOWNLOAD), bNewSession,
&nSession_Id, id_key.get());
nResult = pConfig->RegisterSession(aUIArg,
aLogin ? nsDependentCString(aLogin) : EmptyCString(),
aPassWord ? nsDependentCString(aPassWord) : EmptyCString(),
(aFlags & MAPI_FORCE_DOWNLOAD), bNewSession,
&nSession_Id, id_key.get());
switch (nResult)
{
case -1 :