Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
17a64c44
Commit
17a64c44
authored
Jun 13, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add a test to show that metadata reader may not rewind the stream…
windowscodecs: Add a test to show that metadata reader may not rewind the stream after loading the data.
parent
3b89ffa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
metadata.c
dlls/windowscodecs/tests/metadata.c
+9
-0
No files found.
dlls/windowscodecs/tests/metadata.c
View file @
17a64c44
...
...
@@ -142,6 +142,8 @@ static void load_stream(IUnknown *reader, const char *data, int data_size)
HRESULT
hr
;
IWICPersistStream
*
persist
;
IStream
*
stream
;
LARGE_INTEGER
pos
;
ULARGE_INTEGER
cur_pos
;
stream
=
create_stream
(
data
,
data_size
);
if
(
!
stream
)
...
...
@@ -158,6 +160,13 @@ static void load_stream(IUnknown *reader, const char *data, int data_size)
IWICPersistStream_Release
(
persist
);
}
pos
.
QuadPart
=
0
;
hr
=
IStream_Seek
(
stream
,
pos
,
SEEK_CUR
,
&
cur_pos
);
ok
(
hr
==
S_OK
,
"IStream_Seek error %#x
\n
"
,
hr
);
/* IFD metadata reader doesn't rewind the stream to the start */
ok
(
cur_pos
.
QuadPart
==
0
||
cur_pos
.
QuadPart
<=
data_size
,
"current stream pos is at %x/%x, data size %x
\n
"
,
cur_pos
.
u
.
LowPart
,
cur_pos
.
u
.
HighPart
,
data_size
);
IStream_Release
(
stream
);
}
...
...
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