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
8d0b0b7b
Commit
8d0b0b7b
authored
May 07, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Use proper buffer types in IEnumDMO::Next.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c69bb034
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
20 deletions
+9
-20
dmoreg.c
dlls/msdmo/dmoreg.c
+9
-20
No files found.
dlls/msdmo/dmoreg.c
View file @
8d0b0b7b
...
...
@@ -519,6 +519,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
WCHAR
szGuidKey
[
64
];
WCHAR
szKey
[
MAX_PATH
];
WCHAR
szValue
[
MAX_PATH
];
DMO_PARTIAL_MEDIATYPE
types
[
100
];
DWORD
len
;
UINT
count
=
0
;
HRESULT
hres
=
S_OK
;
...
...
@@ -572,31 +573,25 @@ static HRESULT WINAPI IEnumDMO_fnNext(
{
UINT
i
,
j
;
DWORD
cInTypes
;
DMO_PARTIAL_MEDIATYPE
*
pInTypes
;
hres
=
read_types
(
hkey
,
szDMOInputType
,
&
cInTypes
,
sizeof
(
szValue
)
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
),
(
DMO_PARTIAL_MEDIATYPE
*
)
szValue
);
hres
=
read_types
(
hkey
,
szDMOInputType
,
&
cInTypes
,
ARRAY_SIZE
(
types
),
types
);
if
(
FAILED
(
hres
))
{
RegCloseKey
(
hkey
);
continue
;
}
pInTypes
=
(
DMO_PARTIAL_MEDIATYPE
*
)
szValue
;
TRACE
(
"read %d intypes for %s:
\n
"
,
cInTypes
,
debugstr_w
(
szKey
));
for
(
i
=
0
;
i
<
cInTypes
;
i
++
)
{
TRACE
(
"intype %d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pInT
ypes
[
i
].
type
),
debugstr_guid
(
&
pInT
ypes
[
i
].
subtype
));
TRACE
(
"intype %d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
t
ypes
[
i
].
type
),
debugstr_guid
(
&
t
ypes
[
i
].
subtype
));
}
for
(
i
=
0
;
i
<
This
->
cInTypes
;
i
++
)
{
for
(
j
=
0
;
j
<
cInTypes
;
j
++
)
{
if
(
IsMediaTypeEqual
(
&
pInT
ypes
[
j
],
&
This
->
pInTypes
[
i
]))
if
(
IsMediaTypeEqual
(
&
t
ypes
[
j
],
&
This
->
pInTypes
[
i
]))
break
;
}
...
...
@@ -615,31 +610,25 @@ static HRESULT WINAPI IEnumDMO_fnNext(
{
UINT
i
,
j
;
DWORD
cOutTypes
;
DMO_PARTIAL_MEDIATYPE
*
pOutTypes
;
hres
=
read_types
(
hkey
,
szDMOOutputType
,
&
cOutTypes
,
sizeof
(
szValue
)
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
),
(
DMO_PARTIAL_MEDIATYPE
*
)
szValue
);
hres
=
read_types
(
hkey
,
szDMOOutputType
,
&
cOutTypes
,
ARRAY_SIZE
(
types
),
types
);
if
(
FAILED
(
hres
))
{
RegCloseKey
(
hkey
);
continue
;
}
pOutTypes
=
(
DMO_PARTIAL_MEDIATYPE
*
)
szValue
;
TRACE
(
"read %d outtypes for %s:
\n
"
,
cOutTypes
,
debugstr_w
(
szKey
));
for
(
i
=
0
;
i
<
cOutTypes
;
i
++
)
{
TRACE
(
"outtype %d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pOutT
ypes
[
i
].
type
),
debugstr_guid
(
&
pOutT
ypes
[
i
].
subtype
));
TRACE
(
"outtype %d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
t
ypes
[
i
].
type
),
debugstr_guid
(
&
t
ypes
[
i
].
subtype
));
}
for
(
i
=
0
;
i
<
This
->
cOutTypes
;
i
++
)
{
for
(
j
=
0
;
j
<
cOutTypes
;
j
++
)
{
if
(
IsMediaTypeEqual
(
&
pOutT
ypes
[
j
],
&
This
->
pOutTypes
[
i
]))
if
(
IsMediaTypeEqual
(
&
t
ypes
[
j
],
&
This
->
pOutTypes
[
i
]))
break
;
}
...
...
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