Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
2ddaf331
Commit
2ddaf331
authored
Sep 25, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/ONLYOFFICE/core
into develop
parents
1af37af8
b58026ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
92 deletions
+96
-92
DesktopEditor/common/File.cpp
DesktopEditor/common/File.cpp
+96
-92
No files found.
DesktopEditor/common/File.cpp
View file @
2ddaf331
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment