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
74410ebb
Commit
74410ebb
authored
Dec 10, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msado15: Implement _Stream_get_EOS.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4d5e1f07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
stream.c
dlls/msado15/stream.c
+7
-2
msado15.c
dlls/msado15/tests/msado15.c
+9
-0
No files found.
dlls/msado15/stream.c
View file @
74410ebb
...
...
@@ -124,8 +124,13 @@ static HRESULT WINAPI stream_get_Size( _Stream *iface, LONG *size )
static
HRESULT
WINAPI
stream_get_EOS
(
_Stream
*
iface
,
VARIANT_BOOL
*
eos
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
eos
);
return
E_NOTIMPL
;
struct
stream
*
stream
=
impl_from_Stream
(
iface
);
TRACE
(
"%p, %p
\n
"
,
stream
,
eos
);
if
(
stream
->
state
==
adStateClosed
)
return
MAKE_ADO_HRESULT
(
adErrObjectClosed
);
*
eos
=
(
stream
->
pos
>=
stream
->
size
)
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
stream_get_Position
(
_Stream
*
iface
,
LONG
*
pos
)
...
...
dlls/msado15/tests/msado15.c
View file @
74410ebb
...
...
@@ -49,6 +49,7 @@ static HRESULT str_to_byte_array( const char *data, VARIANT *ret )
static
void
test_Stream
(
void
)
{
_Stream
*
stream
;
VARIANT_BOOL
eos
;
StreamTypeEnum
type
;
LONG
refs
,
size
,
pos
;
ObjectStateEnum
state
;
...
...
@@ -61,6 +62,9 @@ static void test_Stream(void)
hr
=
_Stream_get_Size
(
stream
,
&
size
);
ok
(
hr
==
MAKE_ADO_HRESULT
(
adErrObjectClosed
),
"got %08x
\n
"
,
hr
);
hr
=
_Stream_get_EOS
(
stream
,
&
eos
);
ok
(
hr
==
MAKE_ADO_HRESULT
(
adErrObjectClosed
),
"got %08x
\n
"
,
hr
);
hr
=
_Stream_get_Position
(
stream
,
&
pos
);
ok
(
hr
==
MAKE_ADO_HRESULT
(
adErrObjectClosed
),
"got %08x
\n
"
,
hr
);
...
...
@@ -111,6 +115,11 @@ static void test_Stream(void)
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
size
,
"got %d
\n
"
,
size
);
eos
=
VARIANT_FALSE
;
hr
=
_Stream_get_EOS
(
stream
,
&
eos
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
eos
==
VARIANT_TRUE
,
"got %04x
\n
"
,
eos
);
pos
=
-
1
;
hr
=
_Stream_get_Position
(
stream
,
&
pos
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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