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
3145b672
Commit
3145b672
authored
May 13, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Fix a crash in test_allocate_surface_helper().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6f2e9b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
vmr9.c
dlls/quartz/tests/vmr9.c
+10
-6
No files found.
dlls/quartz/tests/vmr9.c
View file @
3145b672
...
...
@@ -2622,18 +2622,22 @@ static void test_allocate_surface_helper(void)
HRESULT
hr
;
ULONG
ref
;
AdjustWindowRect
(
&
rect
,
WS_OVERLAPPEDWINDOW
,
FALSE
);
window
=
CreateWindowA
(
"static"
,
"quartz_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
(
device
=
create_device
(
window
)))
{
IBaseFilter_Release
(
filter
);
DestroyWindow
(
window
);
return
;
}
IBaseFilter_QueryInterface
(
filter
,
&
IID_IVMRSurfaceAllocatorNotify9
,
(
void
**
)
&
notify
);
count
=
2
;
hr
=
IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper
(
notify
,
&
info
,
&
count
,
surfaces
);
todo_wine
ok
(
hr
==
E_FAIL
,
"Got hr %#x.
\n
"
,
hr
);
AdjustWindowRect
(
&
rect
,
WS_OVERLAPPEDWINDOW
,
FALSE
);
window
=
CreateWindowA
(
"static"
,
"quartz_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
(
device
=
create_device
(
window
)))
goto
out
;
hr
=
IVMRSurfaceAllocatorNotify9_SetD3DDevice
(
notify
,
device
,
MonitorFromWindow
(
window
,
MONITOR_DEFAULTTOPRIMARY
));
if
(
hr
==
E_NOINTERFACE
)
{
...
...
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