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
f2af1ccd
Commit
f2af1ccd
authored
Oct 25, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring
parent
113d5b4c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Common/OfficeFileFormatChecker2.cpp
Common/OfficeFileFormatChecker2.cpp
+2
-0
DesktopEditor/doctrenderer/doctrenderer.pro
DesktopEditor/doctrenderer/doctrenderer.pro
+2
-1
No files found.
Common/OfficeFileFormatChecker2.cpp
View file @
f2af1ccd
...
@@ -124,6 +124,8 @@ bool COfficeFileFormatChecker::isPdfFormatFile (unsigned char* pBuffer,int dwByt
...
@@ -124,6 +124,8 @@ bool COfficeFileFormatChecker::isPdfFormatFile (unsigned char* pBuffer,int dwByt
pTempBuffer
[
nTempBufferSize
-
1
]
=
'\0'
;
pTempBuffer
[
nTempBufferSize
-
1
]
=
'\0'
;
char
*
pFirst
=
strstr
(
(
char
*
)
pTempBuffer
,
"%PDF-"
);
char
*
pFirst
=
strstr
(
(
char
*
)
pTempBuffer
,
"%PDF-"
);
delete
[]
pTempBuffer
;
if
(
NULL
!=
pFirst
)
if
(
NULL
!=
pFirst
)
return
true
;
return
true
;
...
...
DesktopEditor/doctrenderer/doctrenderer.pro
View file @
f2af1ccd
...
@@ -32,7 +32,8 @@ SOURCES += \
...
@@ -32,7 +32,8 @@ SOURCES += \
SOURCES
+=
\
SOURCES
+=
\
..
/../
Common
/
OfficeFileFormatChecker2
.
cpp
\
..
/../
Common
/
OfficeFileFormatChecker2
.
cpp
\
..
/../
Common
/
3
dParty
/
pole
/
pole
.
cpp
..
/../
Common
/
3
dParty
/
pole
/
pole
.
cpp
\
..
/../
Common
/
DocxFormat
/
Source
/
Base
/
unicode_util
.
cpp
HEADERS
+=
doctrenderer
.
h
\
HEADERS
+=
doctrenderer
.
h
\
docbuilder
.
h
\
docbuilder
.
h
\
...
...
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