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
90142117
Commit
90142117
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 IDirect3DRMFrameX_GetClassName.
parent
ce5ac728
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
frame.c
dlls/d3drm/frame.c
+10
-4
d3drm.c
dlls/d3drm/tests/d3drm.c
+8
-3
No files found.
dlls/d3drm/frame.c
View file @
90142117
...
...
@@ -594,9 +594,9 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetClassName(IDirect3DRMFrame2* ifac
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
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
;
return
IDirect3DRMFrame3_GetClassName
(
&
This
->
IDirect3DRMFrame3_iface
,
size
,
name
)
;
}
/*** IDirect3DRMFrame methods ***/
...
...
@@ -1493,9 +1493,15 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_GetClassName(IDirect3DRMFrame3* ifac
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame3
(
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
(
"Frame"
)
||
!
name
)
return
E_INVALIDARG
;
strcpy
(
name
,
"Frame"
);
*
size
=
sizeof
(
"Frame"
);
return
D3DRM_OK
;
}
/*** IDirect3DRMFrame methods ***/
...
...
dlls/d3drm/tests/d3drm.c
View file @
90142117
...
...
@@ -569,13 +569,18 @@ static void test_Frame(void)
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMFrame interface (hr = %x)
\n
"
,
hr
);
CHECK_REFCOUNT
(
pFrameC
,
1
);
hr
=
IDirect3DRMFrame_GetClassName
(
pFrameC
,
NULL
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
hr
=
IDirect3DRMFrame_GetClassName
(
pFrameC
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
count
=
1
;
hr
=
IDirect3DRMFrame_GetClassName
(
pFrameC
,
&
count
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
count
=
sizeof
(
cname
);
hr
=
IDirect3DRMFrame_GetClassName
(
pFrameC
,
&
count
,
cname
);
todo_wine
{
ok
(
hr
==
D3DRM_OK
,
"Cannot get classname (hr = %x)
\n
"
,
hr
);
ok
(
count
!=
sizeof
(
cname
),
"size didn't change
: %u
\n
"
,
count
);
ok
(
count
==
sizeof
(
"Frame"
),
"wrong strlen
: %u
\n
"
,
count
);
ok
(
!
strcmp
(
cname
,
"Frame"
),
"Expected cname to be
\"
Frame
\"
, but got
\"
%s
\"\n
"
,
cname
);
}
hr
=
IDirect3DRMFrame_GetParent
(
pFrameC
,
NULL
);
ok
(
hr
==
D3DRMERR_BADVALUE
,
"Should fail and return D3DRM_BADVALUE (hr = %x)
\n
"
,
hr
);
...
...
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