Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c94b2687
Commit
c94b2687
authored
May 24, 2010
by
Juan Lang
Committed by
Alexandre Julliard
May 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Only read known format ids when attempting to read summary information.
parent
b4c3a041
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
stg_prop.c
dlls/ole32/stg_prop.c
+7
-0
stg_prop.c
dlls/ole32/tests/stg_prop.c
+0
-1
No files found.
dlls/ole32/stg_prop.c
View file @
c94b2687
...
...
@@ -1314,6 +1314,13 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
hr
=
PropertyStorage_ReadFmtIdOffsetFromStream
(
This
->
stm
,
&
fmtOffset
);
if
(
FAILED
(
hr
))
goto
end
;
if
(
!
IsEqualGUID
(
&
fmtOffset
.
fmtid
,
&
FMTID_DocSummaryInformation
)
&&
!
IsEqualGUID
(
&
fmtOffset
.
fmtid
,
&
FMTID_SummaryInformation
))
{
WARN
(
"not reading unknown fmtid %s
\n
"
,
debugstr_guid
(
&
fmtOffset
.
fmtid
));
hr
=
S_FALSE
;
goto
end
;
}
if
(
fmtOffset
.
dwOffset
>
stat
.
cbSize
.
u
.
LowPart
)
{
WARN
(
"invalid offset %d (stream length is %d)
\n
"
,
fmtOffset
.
dwOffset
,
...
...
dlls/ole32/tests/stg_prop.c
View file @
c94b2687
...
...
@@ -333,7 +333,6 @@ static void testProps(void)
hr
=
IPropertySetStorage_Open
(
propSetStorage
,
&
anyOldGuid
,
STGM_READWRITE
|
STGM_SHARE_EXCLUSIVE
,
&
propertyStorage
);
todo_wine
ok
(
hr
==
S_OK
,
"IPropertySetStorage_Open failed: 0x%08x
\n
"
,
hr
);
spec
.
ulKind
=
PRSPEC_PROPID
;
...
...
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