Commit d8988cd1 authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent 440a884c
...@@ -92,16 +92,14 @@ public: ...@@ -92,16 +92,14 @@ public:
bool bResult = pInfo->ReadFromStream(&oUserAtom, pStream); bool bResult = pInfo->ReadFromStream(&oUserAtom, pStream);
offsetToEdit = pInfo->m_oUser.m_nOffsetLastEdit; offsetToEdit = pInfo->m_oUser.m_nOffsetLastEdit;
m_oCurrentUser.m_bIsEncrypt = pInfo->m_bEncrypt;
if (bResult == false) if (bResult == false)
{ {
delete pInfo; delete pInfo;
if (pInfo->m_bEncrypt) if (pInfo->m_bEncrypt)
{
m_oCurrentUser.m_bIsEncrypt = pInfo->m_bEncrypt;
return false; return false;
}
else else
continue; continue;
} }
......
...@@ -116,7 +116,7 @@ bool CPPTFileReader::ReadPersists() ...@@ -116,7 +116,7 @@ bool CPPTFileReader::ReadPersists()
CFStreamPtr pStream = GetDocumentStream(); CFStreamPtr pStream = GetDocumentStream();
if (!pStream) return false; if (!pStream) return false;
if (m_oDocumentInfo.ReadFromStream(&m_oCurrentUser, pStream->stream_) == false) return false; return m_oDocumentInfo.ReadFromStream(&m_oCurrentUser, pStream->stream_);
} }
void CPPTFileReader::ReadDocument() void CPPTFileReader::ReadDocument()
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment