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
089da738
Commit
089da738
authored
Mar 03, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Set activation object attributes for enumeration results.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
063e58fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
main.c
dlls/mfplat/main.c
+21
-1
No files found.
dlls/mfplat/main.c
View file @
089da738
...
...
@@ -1265,7 +1265,27 @@ static HRESULT mft_enum(GUID category, UINT32 flags, const MFT_REGISTER_TYPE_INF
{
(
*
activate
)[
obj_count
]
=
mft_activate
;
/* FIXME: set some attributes */
if
(
mft
->
flags
&
MFT_ENUM_FLAG_LOCALMFT
)
{
IMFActivate_SetUINT32
(
mft_activate
,
&
MFT_PROCESS_LOCAL_Attribute
,
1
);
}
else
{
if
(
mft
->
name
)
IMFActivate_SetString
(
mft_activate
,
&
MFT_FRIENDLY_NAME_Attribute
,
mft
->
name
);
if
(
mft
->
input_types
)
IMFActivate_SetBlob
(
mft_activate
,
&
MFT_INPUT_TYPES_Attributes
,
(
const
UINT8
*
)
mft
->
input_types
,
sizeof
(
*
mft
->
input_types
)
*
mft
->
input_types_count
);
if
(
mft
->
output_types
)
IMFActivate_SetBlob
(
mft_activate
,
&
MFT_OUTPUT_TYPES_Attributes
,
(
const
UINT8
*
)
mft
->
output_types
,
sizeof
(
*
mft
->
output_types
)
*
mft
->
output_types_count
);
}
if
(
!
mft
->
factory
)
IMFActivate_SetGUID
(
mft_activate
,
&
MFT_TRANSFORM_CLSID_Attribute
,
&
mft
->
clsid
);
IMFActivate_SetUINT32
(
mft_activate
,
&
MF_TRANSFORM_FLAGS_Attribute
,
mft
->
flags
);
IMFActivate_SetGUID
(
mft_activate
,
&
MF_TRANSFORM_CATEGORY_Attribute
,
&
mft
->
category
);
obj_count
++
;
}
...
...
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