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
ada885fe
Commit
ada885fe
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_LineSeparator and _Stream_put_LineSeparator.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
74410ebb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
12 deletions
+29
-12
stream.c
dlls/msado15/stream.c
+20
-12
msado15.c
dlls/msado15/tests/msado15.c
+9
-0
No files found.
dlls/msado15/stream.c
View file @
ada885fe
...
...
@@ -32,14 +32,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(msado15);
struct
stream
{
_Stream
Stream_iface
;
LONG
refs
;
ObjectStateEnum
state
;
StreamTypeEnum
type
;
LONG
size
;
LONG
allocated
;
LONG
pos
;
BYTE
*
buf
;
_Stream
Stream_iface
;
LONG
refs
;
ObjectStateEnum
state
;
StreamTypeEnum
type
;
LineSeparatorEnum
sep
;
LONG
size
;
LONG
allocated
;
LONG
pos
;
BYTE
*
buf
;
};
static
inline
struct
stream
*
impl_from_Stream
(
_Stream
*
iface
)
...
...
@@ -193,14 +194,20 @@ static HRESULT WINAPI stream_put_Type( _Stream *iface, StreamTypeEnum type )
static
HRESULT
WINAPI
stream_get_LineSeparator
(
_Stream
*
iface
,
LineSeparatorEnum
*
sep
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
sep
);
return
E_NOTIMPL
;
struct
stream
*
stream
=
impl_from_Stream
(
iface
);
TRACE
(
"%p, %p
\n
"
,
stream
,
sep
);
*
sep
=
stream
->
sep
;
return
S_OK
;
}
static
HRESULT
WINAPI
stream_put_LineSeparator
(
_Stream
*
iface
,
LineSeparatorEnum
sep
)
{
FIXME
(
"%p, %d
\n
"
,
iface
,
sep
);
return
E_NOTIMPL
;
struct
stream
*
stream
=
impl_from_Stream
(
iface
);
TRACE
(
"%p, %d
\n
"
,
stream
,
sep
);
stream
->
sep
=
sep
;
return
S_OK
;
}
static
HRESULT
WINAPI
stream_get_State
(
_Stream
*
iface
,
ObjectStateEnum
*
state
)
...
...
@@ -431,6 +438,7 @@ HRESULT Stream_create( void **obj )
stream
->
Stream_iface
.
lpVtbl
=
&
stream_vtbl
;
stream
->
refs
=
1
;
stream
->
type
=
adTypeText
;
stream
->
sep
=
adCRLF
;
*
obj
=
&
stream
->
Stream_iface
;
TRACE
(
"returning iface %p
\n
"
,
*
obj
);
...
...
dlls/msado15/tests/msado15.c
View file @
ada885fe
...
...
@@ -51,6 +51,7 @@ static void test_Stream(void)
_Stream
*
stream
;
VARIANT_BOOL
eos
;
StreamTypeEnum
type
;
LineSeparatorEnum
sep
;
LONG
refs
,
size
,
pos
;
ObjectStateEnum
state
;
VARIANT
missing
,
val
;
...
...
@@ -89,6 +90,14 @@ static void test_Stream(void)
hr
=
_Stream_put_Type
(
stream
,
adTypeText
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
sep
=
0
;
hr
=
_Stream_get_LineSeparator
(
stream
,
&
sep
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
sep
==
adCRLF
,
"got %d
\n
"
,
sep
);
hr
=
_Stream_put_LineSeparator
(
stream
,
adLF
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
state
=
0xdeadbeef
;
hr
=
_Stream_get_State
(
stream
,
&
state
);
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