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
59091374
Commit
59091374
authored
Sep 22, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Implement IMimeBody_IsType(IBT_EMPTY).
parent
cfbd34ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
mimeole.c
dlls/inetcomm/mimeole.c
+11
-2
mimeole.c
dlls/inetcomm/tests/mimeole.c
+5
-0
No files found.
dlls/inetcomm/mimeole.c
View file @
59091374
...
...
@@ -864,8 +864,17 @@ static HRESULT WINAPI MimeBody_IsType(
IMimeBody
*
iface
,
IMSGBODYTYPE
bodytype
)
{
FIXME
(
"(%p)->(%d): stub
\n
"
,
iface
,
bodytype
);
return
E_NOTIMPL
;
MimeBody
*
This
=
impl_from_IMimeBody
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
iface
,
bodytype
);
switch
(
bodytype
)
{
case
IBT_EMPTY
:
return
This
->
data
?
S_FALSE
:
S_OK
;
default:
FIXME
(
"Unimplemented bodytype %d - returning S_OK
\n
"
,
bodytype
);
}
return
S_OK
;
}
static
HRESULT
WINAPI
MimeBody_SetDisplayName
(
...
...
dlls/inetcomm/tests/mimeole.c
View file @
59091374
...
...
@@ -130,6 +130,8 @@ static void test_CreateBody(void)
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeBody_IsContentType
(
body
,
NULL
,
"mixed"
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeBody_IsType
(
body
,
IBT_EMPTY
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IMimeBody_SetData
(
body
,
IET_8BIT
,
"text"
,
"plain"
,
&
IID_IStream
,
in
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
...
...
@@ -148,6 +150,9 @@ static void test_CreateBody(void)
ok
(
offsets
.
cbBodyStart
==
0
,
"got %d
\n
"
,
offsets
.
cbBodyStart
);
ok
(
offsets
.
cbBodyEnd
==
0
,
"got %d
\n
"
,
offsets
.
cbBodyEnd
);
hr
=
IMimeBody_IsType
(
body
,
IBT_EMPTY
);
ok
(
hr
==
S_FALSE
,
"got %08x
\n
"
,
hr
);
hr
=
MimeOleGetAllocator
(
&
alloc
);
ok
(
hr
==
S_OK
,
"ret %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