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
9939ac8f
Commit
9939ac8f
authored
Jul 16, 2015
by
Aaryaman Vasishta
Committed by
Alexandre Julliard
Jul 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm/tests: Fix leaks while creating device in tests (Valgrind).
parent
70f9cc9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
d3drm.c
dlls/d3drm/tests/d3drm.c
+6
-0
No files found.
dlls/d3drm/tests/d3drm.c
View file @
9939ac8f
...
...
@@ -1999,10 +1999,14 @@ static void test_create_device_from_clipper(void)
hr
=
IDirect3DRM2_CreateDeviceFromClipper
(
d3drm2
,
clipper
,
&
driver
,
0
,
0
,
&
device2
);
todo_wine
ok
(
hr
==
D3DRMERR_BADVALUE
,
"Expected hr == D3DRMERR_BADVALUE, got %x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IDirect3DRMDevice2_Release
(
device2
);
/* If NULL is passed for clipper, CreateDeviceFromClipper returns D3DRMERR_BADVALUE */
hr
=
IDirect3DRM2_CreateDeviceFromClipper
(
d3drm2
,
NULL
,
&
driver
,
0
,
0
,
&
device2
);
todo_wine
ok
(
hr
==
D3DRMERR_BADVALUE
,
"Expected hr == D3DRMERR_BADVALUE, got %x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IDirect3DRMDevice2_Release
(
device2
);
hr
=
IDirect3DRM2_CreateDeviceFromClipper
(
d3drm2
,
clipper
,
&
driver
,
300
,
200
,
&
device2
);
ok
(
hr
==
D3DRM_OK
,
"Cannot create IDirect3DRMDevice2 interface (hr = %x).
\n
"
,
hr
);
...
...
@@ -2197,6 +2201,8 @@ static void test_create_device_from_surface(void)
hr
=
IDirect3DRM2_CreateDeviceFromSurface
(
d3drm2
,
&
driver
,
ddraw
,
surface
,
&
device2
);
todo_wine
ok
(
hr
==
DDERR_INVALIDCAPS
,
"Expected hr == DDERR_INVALIDCAPS, got %x.
\n
"
,
hr
);
IDirectDrawSurface_Release
(
surface
);
if
(
SUCCEEDED
(
hr
))
IDirect3DRMDevice2_Release
(
device2
);
desc
.
ddsCaps
.
dwCaps
|=
DDSCAPS_3DDEVICE
;
hr
=
IDirectDraw_CreateSurface
(
ddraw
,
&
desc
,
&
surface
,
NULL
);
...
...
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