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
55af98d1
Commit
55af98d1
authored
Sep 21, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opcservices: Update content stream position on Read().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8479238f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
package.c
dlls/opcservices/package.c
+2
-0
opcservices.c
dlls/opcservices/tests/opcservices.c
+5
-0
No files found.
dlls/opcservices/package.c
View file @
55af98d1
...
...
@@ -560,6 +560,8 @@ static HRESULT WINAPI opc_content_stream_Read(IStream *iface, void *buff, ULONG
if
(
*
num_read
)
memcpy
(
buff
,
stream
->
content
->
data
+
stream
->
pos
.
QuadPart
,
*
num_read
);
stream
->
pos
.
QuadPart
+=
*
num_read
;
return
S_OK
;
}
...
...
dlls/opcservices/tests/opcservices.c
View file @
55af98d1
...
...
@@ -159,6 +159,11 @@ static void test_package(void)
ok
(
hr
==
S_OK
,
"Failed to read content, hr %#x.
\n
"
,
hr
);
ok
(
!
memcmp
(
buff
,
"abc"
,
3
),
"Unexpected content.
\n
"
);
move
.
QuadPart
=
0
;
hr
=
IStream_Seek
(
stream2
,
move
,
STREAM_SEEK_CUR
,
&
pos
);
ok
(
SUCCEEDED
(
hr
),
"Seek failed, hr %#x.
\n
"
,
hr
);
ok
(
pos
.
QuadPart
==
3
,
"Unexpected position.
\n
"
);
IStream_Release
(
stream
);
IStream_Release
(
stream2
);
...
...
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