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
6463db0c
Commit
6463db0c
authored
Dec 09, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msado15: Implement _Stream_get_State.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5290480c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
stream.c
dlls/msado15/stream.c
+5
-2
msado15.c
dlls/msado15/tests/msado15.c
+16
-0
No files found.
dlls/msado15/stream.c
View file @
6463db0c
...
...
@@ -162,8 +162,11 @@ static HRESULT WINAPI stream_put_LineSeparator( _Stream *iface, LineSeparatorEnu
static
HRESULT
WINAPI
stream_get_State
(
_Stream
*
iface
,
ObjectStateEnum
*
state
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
state
);
return
E_NOTIMPL
;
struct
stream
*
stream
=
impl_from_Stream
(
iface
);
TRACE
(
"%p, %p
\n
"
,
stream
,
state
);
*
state
=
stream
->
state
;
return
S_OK
;
}
static
HRESULT
WINAPI
stream_get_Mode
(
_Stream
*
iface
,
ConnectModeEnum
*
mode
)
...
...
dlls/msado15/tests/msado15.c
View file @
6463db0c
...
...
@@ -30,6 +30,7 @@ static void test_Stream(void)
_Stream
*
stream
;
StreamTypeEnum
type
;
LONG
refs
;
ObjectStateEnum
state
;
VARIANT
missing
;
HRESULT
hr
;
...
...
@@ -54,6 +55,11 @@ static void test_Stream(void)
hr
=
_Stream_put_Type
(
stream
,
adTypeText
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
state
=
0xdeadbeef
;
hr
=
_Stream_get_State
(
stream
,
&
state
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
state
==
adStateClosed
,
"got %u
\n
"
,
state
);
V_VT
(
&
missing
)
=
VT_ERROR
;
V_ERROR
(
&
missing
)
=
DISP_E_PARAMNOTFOUND
;
hr
=
_Stream_Open
(
stream
,
missing
,
adModeUnknown
,
adOpenStreamUnspecified
,
NULL
,
NULL
);
...
...
@@ -62,9 +68,19 @@ static void test_Stream(void)
hr
=
_Stream_Open
(
stream
,
missing
,
adModeUnknown
,
adOpenStreamUnspecified
,
NULL
,
NULL
);
ok
(
hr
==
MAKE_ADO_HRESULT
(
adErrObjectOpen
),
"got %08x
\n
"
,
hr
);
state
=
0xdeadbeef
;
hr
=
_Stream_get_State
(
stream
,
&
state
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
state
==
adStateOpen
,
"got %u
\n
"
,
state
);
hr
=
_Stream_Close
(
stream
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
state
=
0xdeadbeef
;
hr
=
_Stream_get_State
(
stream
,
&
state
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
state
==
adStateClosed
,
"got %u
\n
"
,
state
);
hr
=
_Stream_Close
(
stream
);
ok
(
hr
==
MAKE_ADO_HRESULT
(
adErrObjectClosed
),
"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