Commit 2ddaf331 authored by ElenaSubbotina's avatar ElenaSubbotina

Merge branch 'develop' of https://github.com/ONLYOFFICE/core into develop

parents 1af37af8 b58026ea
...@@ -51,8 +51,10 @@ namespace NSFile ...@@ -51,8 +51,10 @@ namespace NSFile
{ {
m_pFile = fopen(fileSystemRepresentation(sFileName), bRewrite ? "rb+" : "rb"); m_pFile = fopen(fileSystemRepresentation(sFileName), bRewrite ? "rb+" : "rb");
if (NULL == m_pFile) if (NULL == m_pFile) {
printf ("NSFile::OpenFile - error open file : %s\n",strerror(errno));
return false; return false;
}
fseek(m_pFile, 0, SEEK_END); fseek(m_pFile, 0, SEEK_END);
m_lFileSize = ftell(m_pFile); m_lFileSize = ftell(m_pFile);
...@@ -81,8 +83,10 @@ namespace NSFile ...@@ -81,8 +83,10 @@ namespace NSFile
{ {
m_pFile = fopen(fileSystemRepresentation(sFileName), "wb"); m_pFile = fopen(fileSystemRepresentation(sFileName), "wb");
if (NULL == m_pFile) if (NULL == m_pFile) {
printf ("NSFile::CreateFileW - error create file : %s\n",strerror(errno));
return false; return false;
}
m_lFilePosition = 0; m_lFilePosition = 0;
return true; return true;
......
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