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
c74a5395
Commit
c74a5395
authored
Apr 28, 2016
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
May 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Implement IMimeBody GetProp.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed9a8a22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
mimeole.c
dlls/inetcomm/mimeole.c
+14
-3
mimeole.c
dlls/inetcomm/tests/mimeole.c
+12
-3
No files found.
dlls/inetcomm/mimeole.c
View file @
c74a5395
...
...
@@ -642,7 +642,13 @@ static HRESULT WINAPI MimeBody_GetProp(
LPPROPVARIANT
pValue
)
{
MimeBody
*
This
=
impl_from_IMimeBody
(
iface
);
TRACE
(
"(%p)->(%s, 0x%x, %p)
\n
"
,
This
,
pszName
,
dwFlags
,
pValue
);
header_t
*
header
;
HRESULT
hr
;
TRACE
(
"(%p)->(%s, 0x%x, %p)
\n
"
,
This
,
debugstr_a
(
pszName
),
dwFlags
,
pValue
);
if
(
!
pszName
||
!
pValue
)
return
E_INVALIDARG
;
if
(
!
strcasecmp
(
pszName
,
"att:pri-content-type"
))
{
...
...
@@ -652,8 +658,13 @@ static HRESULT WINAPI MimeBody_GetProp(
return
S_OK
;
}
FIXME
(
"stub!
\n
"
);
return
E_FAIL
;
hr
=
find_prop
(
This
,
pszName
,
&
header
);
if
(
hr
==
S_OK
)
{
PropVariantCopy
(
pValue
,
&
header
->
value
);
}
return
hr
;
}
static
HRESULT
WINAPI
MimeBody_SetProp
(
...
...
dlls/inetcomm/tests/mimeole.c
View file @
c74a5395
...
...
@@ -361,12 +361,21 @@ static void test_MessageSetProp(void)
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
PropVariantClear
(
&
prop
);
hr
=
IMimeBody_GetProp
(
body
,
NULL
,
0
,
&
prop
);
ok
(
hr
==
E_INVALIDARG
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeBody_GetProp
(
body
,
"Thread-Topic"
,
0
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeBody_GetProp
(
body
,
"Wine-Topic"
,
0
,
&
prop
);
ok
(
hr
==
MIME_E_NOT_FOUND
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeBody_GetProp
(
body
,
"Thread-Topic"
,
0
,
&
prop
);
todo_wine
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
todo_wine
ok
(
prop
.
vt
==
VT_LPSTR
,
"type %d
\n
"
,
prop
.
vt
);
todo_wine
ok
(
!
strcmp
(
prop
.
u
.
pszVal
,
topic
),
"got %s
\n
"
,
prop
.
u
.
pszVal
);
ok
(
prop
.
vt
==
VT_LPSTR
,
"type %d
\n
"
,
prop
.
vt
);
ok
(
!
strcmp
(
prop
.
u
.
pszVal
,
topic
),
"got %s
\n
"
,
prop
.
u
.
pszVal
);
PropVariantClear
(
&
prop
);
}
...
...
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