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
260c2edd
Commit
260c2edd
authored
Dec 11, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3eeec8fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
+2
-2
No files found.
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
View file @
260c2edd
...
...
@@ -54,12 +54,12 @@ HRESULT ConvertOle1ToOle2(BYTE *pData, int nSize, std::wstring sOle2Name)
_UINT32
name_size
=
name
.
length
()
+
1
;
//Ole
BYTE
dataOleInfo
[]
=
{
0x01
,
0x00
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
POLE
::
Stream
oStream3
(
storageOut
,
L
"
\001
Ole"
,
true
,
20
);
POLE
::
Stream
oStream3
(
storageOut
,
"
\001
Ole"
,
true
,
20
);
oStream3
.
write
(
dataOleInfo
,
20
);
oStream3
.
flush
();
//CompObj
BYTE
dataCompObjHeader
[
28
]
=
{
0x01
,
0x00
,
0xfe
,
0xff
,
0x03
,
0x0a
,
0x00
,
0x00
,
0xff
,
0xff
,
0xff
,
0xff
,
0x0a
,
0x00
,
0x03
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
};
POLE
::
Stream
oStream1
(
storageOut
,
L
"
\001
CompObj"
,
true
,
28
+
(
name_size
+
5
)
+
2
*
(
ole1Reader
.
Header
.
ClassName
.
size
+
4
)
+
4
*
4
);
POLE
::
Stream
oStream1
(
storageOut
,
"
\001
CompObj"
,
true
,
28
+
(
name_size
+
5
)
+
2
*
(
ole1Reader
.
Header
.
ClassName
.
size
+
4
)
+
4
*
4
);
oStream1
.
write
(
dataCompObjHeader
,
28
);
oStream1
.
write
((
BYTE
*
)
&
name_size
,
4
);
...
...
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