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
b7c48c89
Commit
b7c48c89
authored
Jun 07, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva2: Check input stream format in GetVideoProcessorDeviceGuids().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0070a00c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
main.c
dlls/dxva2/main.c
+5
-0
dxva2.c
dlls/dxva2/tests/dxva2.c
+0
-1
No files found.
dlls/dxva2/main.c
View file @
b7c48c89
...
@@ -390,6 +390,11 @@ static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorDeviceGu
...
@@ -390,6 +390,11 @@ static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorDeviceGu
{
{
FIXME
(
"%p, %p, %p, %p semi-stub.
\n
"
,
iface
,
video_desc
,
count
,
guids
);
FIXME
(
"%p, %p, %p, %p semi-stub.
\n
"
,
iface
,
video_desc
,
count
,
guids
);
*
count
=
0
;
if
(
!
dxva_is_supported_stream_format
(
video_desc
))
return
E_FAIL
;
if
(
!
(
*
guids
=
CoTaskMemAlloc
(
sizeof
(
**
guids
))))
if
(
!
(
*
guids
=
CoTaskMemAlloc
(
sizeof
(
**
guids
))))
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
...
...
dlls/dxva2/tests/dxva2.c
View file @
b7c48c89
...
@@ -380,7 +380,6 @@ static void test_device_manager(void)
...
@@ -380,7 +380,6 @@ static void test_device_manager(void)
ok
(
hr
==
E_FAIL
,
"Unexpected hr %#x, format %d.
\n
"
,
hr
,
rt_unsupported_formats
[
i
]);
ok
(
hr
==
E_FAIL
,
"Unexpected hr %#x, format %d.
\n
"
,
hr
,
rt_unsupported_formats
[
i
]);
hr
=
IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids
(
proc_service
,
&
video_desc
,
&
count
,
&
guids
);
hr
=
IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids
(
proc_service
,
&
video_desc
,
&
count
,
&
guids
);
todo_wine
ok
(
hr
==
E_FAIL
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_FAIL
,
"Unexpected hr %#x.
\n
"
,
hr
);
}
}
...
...
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