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
288196a4
Commit
288196a4
authored
Nov 14, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Nov 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Add a test for MimeBody.
parent
cc3fcf0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
mimeole.c
dlls/inetcomm/tests/mimeole.c
+20
-0
No files found.
dlls/inetcomm/tests/mimeole.c
View file @
288196a4
...
...
@@ -22,6 +22,9 @@
#include "windows.h"
#include "ole2.h"
#include "ocidl.h"
#include "initguid.h"
#include "mimeole.h"
#include <stdio.h>
...
...
@@ -52,10 +55,27 @@ static void test_CreateSecurity(void)
IMimeSecurity_Release
(
sec
);
}
static
void
test_CreateBody
(
void
)
{
HRESULT
hr
;
IMimeBody
*
body
;
HBODY
handle
=
(
void
*
)
0xdeadbeef
;
hr
=
CoCreateInstance
(
&
CLSID_IMimeBody
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMimeBody
,
(
void
**
)
&
body
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeBody_GetHandle
(
body
,
&
handle
);
ok
(
hr
==
MIME_E_NO_DATA
,
"ret %08x
\n
"
,
hr
);
ok
(
handle
==
NULL
,
"handle %p
\n
"
,
handle
);
IMimeBody_Release
(
body
);
}
START_TEST
(
mimeole
)
{
OleInitialize
(
NULL
);
test_CreateVirtualStream
();
test_CreateSecurity
();
test_CreateBody
();
OleUninitialize
();
}
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