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
09a8a679
Commit
09a8a679
authored
Sep 25, 2017
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log for errors
parent
4a9abce1
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 @
09a8a679
...
...
@@ -51,8 +51,10 @@ namespace NSFile
{
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
;
}
fseek
(
m_pFile
,
0
,
SEEK_END
);
m_lFileSize
=
ftell
(
m_pFile
);
...
...
@@ -81,8 +83,10 @@ namespace NSFile
{
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
;
}
m_lFilePosition
=
0
;
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