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
c66411f7
Commit
c66411f7
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_Mode and _Stream_put_Mode.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ada885fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
stream.c
dlls/msado15/stream.c
+11
-4
msado15.c
dlls/msado15/tests/msado15.c
+9
-0
No files found.
dlls/msado15/stream.c
View file @
c66411f7
...
...
@@ -35,6 +35,7 @@ struct stream
_Stream
Stream_iface
;
LONG
refs
;
ObjectStateEnum
state
;
ConnectModeEnum
mode
;
StreamTypeEnum
type
;
LineSeparatorEnum
sep
;
LONG
size
;
...
...
@@ -221,14 +222,20 @@ static HRESULT WINAPI stream_get_State( _Stream *iface, ObjectStateEnum *state )
static
HRESULT
WINAPI
stream_get_Mode
(
_Stream
*
iface
,
ConnectModeEnum
*
mode
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
mode
);
return
E_NOTIMPL
;
struct
stream
*
stream
=
impl_from_Stream
(
iface
);
TRACE
(
"%p, %p
\n
"
,
stream
,
mode
);
*
mode
=
stream
->
mode
;
return
S_OK
;
}
static
HRESULT
WINAPI
stream_put_Mode
(
_Stream
*
iface
,
ConnectModeEnum
mode
)
{
FIXME
(
"%p, %u
\n
"
,
iface
,
mode
);
return
E_NOTIMPL
;
struct
stream
*
stream
=
impl_from_Stream
(
iface
);
TRACE
(
"%p, %u
\n
"
,
stream
,
mode
);
stream
->
mode
=
mode
;
return
S_OK
;
}
static
HRESULT
WINAPI
stream_get_Charset
(
_Stream
*
iface
,
BSTR
*
charset
)
...
...
dlls/msado15/tests/msado15.c
View file @
c66411f7
...
...
@@ -54,6 +54,7 @@ static void test_Stream(void)
LineSeparatorEnum
sep
;
LONG
refs
,
size
,
pos
;
ObjectStateEnum
state
;
ConnectModeEnum
mode
;
VARIANT
missing
,
val
;
HRESULT
hr
;
...
...
@@ -103,6 +104,14 @@ static void test_Stream(void)
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
state
==
adStateClosed
,
"got %u
\n
"
,
state
);
mode
=
0xdeadbeef
;
hr
=
_Stream_get_Mode
(
stream
,
&
mode
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
mode
==
adModeUnknown
,
"got %u
\n
"
,
mode
);
hr
=
_Stream_put_Mode
(
stream
,
adModeReadWrite
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
_Stream_Read
(
stream
,
2
,
&
val
);
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