Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
546a3dcf
Commit
546a3dcf
authored
Jun 14, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jun 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement IDirect3DRMLight_GetClassName.
parent
90142117
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
light.c
dlls/d3drm/light.c
+8
-2
d3drm.c
dlls/d3drm/tests/d3drm.c
+8
-3
No files found.
dlls/d3drm/light.c
View file @
546a3dcf
...
...
@@ -172,9 +172,15 @@ static HRESULT WINAPI IDirect3DRMLightImpl_GetClassName(IDirect3DRMLight* iface,
{
IDirect3DRMLightImpl
*
This
=
impl_from_IDirect3DRMLight
(
iface
);
FIXME
(
"(%p/%p)->(%p, %p): stub
\n
"
,
iface
,
This
,
size
,
name
);
TRACE
(
"(%p/%p)->(%p, %p)
\n
"
,
iface
,
This
,
size
,
name
);
return
E_NOTIMPL
;
if
(
!
size
||
*
size
<
strlen
(
"Light"
)
||
!
name
)
return
E_INVALIDARG
;
strcpy
(
name
,
"Light"
);
*
size
=
sizeof
(
"Light"
);
return
D3DRM_OK
;
}
/*** IDirect3DRMLight methods ***/
...
...
dlls/d3drm/tests/d3drm.c
View file @
546a3dcf
...
...
@@ -879,13 +879,18 @@ static void test_Light(void)
hr
=
IDirect3DRM_CreateLightRGB
(
pD3DRM
,
D3DRMLIGHT_SPOT
,
0
.
5
,
0
.
5
,
0
.
5
,
&
pLight
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMLight interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMLight_GetClassName
(
pLight
,
NULL
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
hr
=
IDirect3DRMLight_GetClassName
(
pLight
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
1
;
hr
=
IDirect3DRMLight_GetClassName
(
pLight
,
&
size
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
sizeof
(
cname
);
hr
=
IDirect3DRMLight_GetClassName
(
pLight
,
&
size
,
cname
);
todo_wine
{
ok
(
hr
==
D3DRM_OK
,
"Cannot get classname (hr = %x)
\n
"
,
hr
);
ok
(
size
!=
sizeof
(
cname
),
"size didn't change
: %u
\n
"
,
size
);
ok
(
size
==
sizeof
(
"Light"
),
"wrong strlen
: %u
\n
"
,
size
);
ok
(
!
strcmp
(
cname
,
"Light"
),
"Expected cname to be
\"
Light
\"
, but got
\"
%s
\"\n
"
,
cname
);
}
type
=
IDirect3DRMLight_GetType
(
pLight
);
ok
(
type
==
D3DRMLIGHT_SPOT
,
"wrong type (%u)
\n
"
,
type
);
...
...
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