Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3f92c5b7
Commit
3f92c5b7
authored
Feb 12, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Feb 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Implement IMimeBody_GetProp for the primary context type.
parent
02ceeef2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
mimeole.c
dlls/inetcomm/mimeole.c
+13
-2
mimeole.c
dlls/inetcomm/tests/mimeole.c
+11
-0
No files found.
dlls/inetcomm/mimeole.c
View file @
3f92c5b7
...
...
@@ -627,8 +627,19 @@ static HRESULT WINAPI MimeBody_GetProp(
DWORD
dwFlags
,
LPPROPVARIANT
pValue
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
MimeBody
*
This
=
impl_from_IMimeBody
(
iface
);
TRACE
(
"(%p)->(%s, %d, %p)
\n
"
,
This
,
pszName
,
dwFlags
,
pValue
);
if
(
!
strcasecmp
(
pszName
,
"att:pri-content-type"
))
{
PropVariantClear
(
pValue
);
pValue
->
vt
=
VT_LPSTR
;
pValue
->
u
.
pszVal
=
strdupA
(
This
->
content_pri_type
);
return
S_OK
;
}
FIXME
(
"stub!
\n
"
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
MimeBody_SetProp
(
...
...
dlls/inetcomm/tests/mimeole.c
View file @
3f92c5b7
...
...
@@ -19,6 +19,7 @@
*/
#define COBJMACROS
#define NONAMELESSUNION
#include "windows.h"
#include "ole2.h"
...
...
@@ -216,6 +217,8 @@ static void test_CreateMessage(void)
FINDBODY
find_struct
;
char
text
[]
=
"text"
;
HBODY
*
body_list
;
PROPVARIANT
prop
;
static
char
att_pritype
[]
=
"att:pri-content-type"
;
hr
=
MimeOleCreateMessage
(
NULL
,
&
msg
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
...
...
@@ -247,6 +250,14 @@ static void test_CreateMessage(void)
IMimeBody_Release
(
body
);
hr
=
IMimeMessage_GetBody
(
msg
,
IBL_ROOT
,
NULL
,
&
hbody
);
PropVariantInit
(
&
prop
);
hr
=
IMimeMessage_GetBodyProp
(
msg
,
hbody
,
att_pritype
,
0
,
&
prop
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
prop
.
vt
==
VT_LPSTR
,
"vt %08x
\n
"
,
prop
.
vt
);
ok
(
!
strcasecmp
(
prop
.
u
.
pszVal
,
"multipart"
),
"got %s
\n
"
,
prop
.
u
.
pszVal
);
PropVariantClear
(
&
prop
);
hr
=
IMimeMessage_GetBody
(
msg
,
IBL_FIRST
,
hbody
,
&
hbody
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeMessage_BindToObject
(
msg
,
hbody
,
&
IID_IMimeBody
,
(
void
**
)
&
body
);
...
...
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