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
50f5c925
Commit
50f5c925
authored
Oct 23, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Properly release the first device in test_depth_stencil_reset().
parent
cde86733
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
device.c
dlls/d3d8/tests/device.c
+5
-1
No files found.
dlls/d3d8/tests/device.c
View file @
50f5c925
...
...
@@ -1350,6 +1350,7 @@ static void test_depth_stencil_reset(void)
IDirect3DSurface8
*
surface
;
IDirect3DDevice8
*
device
=
NULL
;
IDirect3D8
*
d3d8
;
UINT
refcount
;
HRESULT
hr
;
HWND
hwnd
;
...
...
@@ -1408,7 +1409,10 @@ static void test_depth_stencil_reset(void)
ok
(
hr
==
D3DERR_NOTFOUND
,
"GetDepthStencilSurface returned 0x%08x, expected D3DERR_NOTFOUND
\n
"
,
hr
);
ok
(
surface
==
NULL
,
"Depth stencil should be NULL
\n
"
);
refcount
=
IDirect3DDevice8_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
device
=
NULL
;
IDirect3D8_GetAdapterDisplayMode
(
d3d8
,
D3DADAPTER_DEFAULT
,
&
display_mode
);
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
)
);
...
...
@@ -1450,7 +1454,7 @@ static void test_depth_stencil_reset(void)
cleanup:
if
(
device
)
{
UINT
refcount
=
IDirect3DDevice8_Release
(
device
);
refcount
=
IDirect3DDevice8_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
}
if
(
d3d8
)
IDirect3D8_Release
(
d3d8
);
...
...
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