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
351c8621
Commit
351c8621
authored
May 08, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Only return valid GUIDs in IEnumDMO_Next().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
386c2708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
dmoreg.c
dlls/msdmo/dmoreg.c
+14
-0
No files found.
dlls/msdmo/dmoreg.c
View file @
351c8621
...
...
@@ -117,6 +117,16 @@ static LPWSTR GUIDToString(LPWSTR lpwstr, REFGUID lpcguid)
return
lpwstr
;
}
static
HRESULT
string_to_guid
(
const
WCHAR
*
string
,
GUID
*
guid
)
{
WCHAR
buffer
[
39
];
buffer
[
0
]
=
'{'
;
strcpyW
(
buffer
+
1
,
string
);
buffer
[
37
]
=
'}'
;
buffer
[
38
]
=
0
;
return
CLSIDFromString
(
buffer
,
guid
);
}
static
BOOL
IsMediaTypeEqual
(
const
DMO_PARTIAL_MEDIATYPE
*
mt1
,
const
DMO_PARTIAL_MEDIATYPE
*
mt2
)
{
...
...
@@ -514,6 +524,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
UINT
count
=
0
;
HRESULT
hres
=
S_OK
;
LONG
ret
;
GUID
guid
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
...
...
@@ -537,6 +548,9 @@ static HRESULT WINAPI IEnumDMO_fnNext(
break
;
}
if
(
string_to_guid
(
szNextKey
,
&
guid
)
!=
S_OK
)
continue
;
TRACE
(
"found %s
\n
"
,
debugstr_w
(
szNextKey
));
if
(
!
(
This
->
dwFlags
&
DMO_ENUMF_INCLUDE_KEYED
))
...
...
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