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
e87faa1a
Commit
e87faa1a
authored
Feb 19, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Remove initialization from tests that don't need it.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a21448a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
mfplat.c
dlls/mfplat/tests/mfplat.c
+15
-8
No files found.
dlls/mfplat/tests/mfplat.c
View file @
e87faa1a
...
...
@@ -319,12 +319,6 @@ static void test_MFCreateMediaType(void)
HRESULT
hr
;
IMFMediaType
*
mediatype
;
hr
=
MFStartup
(
MAKELONG
(
MF_API_VERSION
,
0xdead
),
MFSTARTUP_FULL
);
ok
(
hr
==
MF_E_BAD_STARTUP_VERSION
,
"got 0x%08x
\n
"
,
hr
);
hr
=
MFStartup
(
MF_VERSION
,
MFSTARTUP_FULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
0
)
{
/* Crash on Windows Vista/7 */
...
...
@@ -339,8 +333,6 @@ if(0)
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IMFMediaType_Release
(
mediatype
);
MFShutdown
();
}
static
void
test_MFCreateMediaEvent
(
void
)
...
...
@@ -832,12 +824,27 @@ static void test_MFCreateAsyncResult(void)
ok
(
!
refcount
,
"Unexpected refcount %u
\n
."
,
refcount
);
}
static
void
test_startup
(
void
)
{
HRESULT
hr
;
hr
=
MFStartup
(
MAKELONG
(
MF_API_VERSION
,
0xdead
),
MFSTARTUP_FULL
);
ok
(
hr
==
MF_E_BAD_STARTUP_VERSION
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
MFStartup
(
MF_VERSION
,
MFSTARTUP_FULL
);
ok
(
hr
==
S_OK
,
"Failed to start up, hr %#x.
\n
"
,
hr
);
hr
=
MFShutdown
();
ok
(
hr
==
S_OK
,
"Failed to shutdown, hr %#x.
\n
"
,
hr
);
}
START_TEST
(
mfplat
)
{
CoInitialize
(
NULL
);
init_functions
();
test_startup
();
test_register
();
test_MFCreateMediaType
();
test_MFCreateMediaEvent
();
...
...
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