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
beb3094c
Commit
beb3094c
authored
Apr 30, 2018
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Apr 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Return S_OK from MFStartup stub.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0645fa13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
main.c
dlls/mfplat/main.c
+8
-1
mfplat.c
dlls/mfplat/tests/mfplat.c
+4
-1
No files found.
dlls/mfplat/main.c
View file @
beb3094c
...
...
@@ -404,8 +404,15 @@ HRESULT WINAPI MFTUnregister(CLSID clsid)
*/
HRESULT
WINAPI
MFStartup
(
ULONG
version
,
DWORD
flags
)
{
#define MF_VERSION_XP MAKELONG( MF_API_VERSION, 1 )
#define MF_VERSION_WIN7 MAKELONG( MF_API_VERSION, 2 )
FIXME
(
"(%u, %u): stub
\n
"
,
version
,
flags
);
return
MF_E_BAD_STARTUP_VERSION
;
if
(
version
!=
MF_VERSION_XP
&&
version
!=
MF_VERSION_WIN7
)
return
MF_E_BAD_STARTUP_VERSION
;
return
S_OK
;
}
/***********************************************************************
...
...
dlls/mfplat/tests/mfplat.c
View file @
beb3094c
...
...
@@ -202,8 +202,11 @@ 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
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
0
)
{
...
...
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