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
d7e052f8
Commit
d7e052f8
authored
Aug 16, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm/tests: Avoid LPDIRECT3DRMWINDEVICE.
parent
c635b2fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
d3drm.c
dlls/d3drm/tests/d3drm.c
+7
-8
No files found.
dlls/d3drm/tests/d3drm.c
View file @
d7e052f8
...
...
@@ -1476,7 +1476,7 @@ static void test_Device(void)
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
IDirect3DRMDevice
*
device
;
LPDIRECT3DRMWINDEVICE
pWinD
evice
;
IDirect3DRMWinDevice
*
win_d
evice
;
GUID
driver
;
HWND
window
;
RECT
rc
;
...
...
@@ -1513,27 +1513,26 @@ static void test_Device(void)
ok
(
!
strcmp
(
cname
,
"Device"
),
"Expected cname to be
\"
Device
\"
, but got
\"
%s
\"\n
"
,
cname
);
/* WinDevice */
hr
=
IDirect3DRMDevice_QueryInterface
(
device
,
&
IID_IDirect3DRMWinDevice
,
(
LPVOID
*
)
&
pWinDevice
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
=
IDirect3DRMDevice_QueryInterface
(
device
,
&
IID_IDirect3DRMWinDevice
,
(
void
**
)
&
win_device
)))
{
win_skip
(
"Cannot get IDirect3DRMWinDevice interface (hr = %x), skipping tests
\n
"
,
hr
);
goto
cleanup
;
}
hr
=
IDirect3DRMWinDevice_GetClassName
(
pWinD
evice
,
NULL
,
cname
);
hr
=
IDirect3DRMWinDevice_GetClassName
(
win_d
evice
,
NULL
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
hr
=
IDirect3DRMWinDevice_GetClassName
(
pWinD
evice
,
NULL
,
NULL
);
hr
=
IDirect3DRMWinDevice_GetClassName
(
win_d
evice
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
1
;
hr
=
IDirect3DRMWinDevice_GetClassName
(
pWinD
evice
,
&
size
,
cname
);
hr
=
IDirect3DRMWinDevice_GetClassName
(
win_d
evice
,
&
size
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
sizeof
(
cname
);
hr
=
IDirect3DRMWinDevice_GetClassName
(
pWinD
evice
,
&
size
,
cname
);
hr
=
IDirect3DRMWinDevice_GetClassName
(
win_d
evice
,
&
size
,
cname
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get classname (hr = %x)
\n
"
,
hr
);
ok
(
size
==
sizeof
(
"Device"
),
"wrong size: %u
\n
"
,
size
);
ok
(
!
strcmp
(
cname
,
"Device"
),
"Expected cname to be
\"
Device
\"
, but got
\"
%s
\"\n
"
,
cname
);
IDirect3DRMWinDevice_Release
(
pWinD
evice
);
IDirect3DRMWinDevice_Release
(
win_d
evice
);
cleanup:
IDirect3DRMDevice_Release
(
device
);
...
...
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