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
afe616b5
Commit
afe616b5
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 IDirect3DRMMeshBuilderX_GetClassName.
parent
546a3dcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
meshbuilder.c
dlls/d3drm/meshbuilder.c
+12
-6
d3drm.c
dlls/d3drm/tests/d3drm.c
+16
-6
No files found.
dlls/d3drm/meshbuilder.c
View file @
afe616b5
...
...
@@ -454,13 +454,13 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_GetName(IDirect3DRMMeshBuilder
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder2Impl_GetClassName
(
IDirect3DRMMeshBuilder2
*
iface
,
LPDWORD
lpdwSize
,
LPSTR
lpN
ame
)
LPDWORD
size
,
LPSTR
n
ame
)
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
FIXME
(
"(%p)->(%p,%p): stub
\n
"
,
This
,
lpdwSize
,
lpN
ame
);
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
size
,
n
ame
);
return
E_NOTIMPL
;
return
IDirect3DRMMeshBuilder3_GetClassName
(
&
This
->
IDirect3DRMMeshBuilder3_iface
,
size
,
name
)
;
}
/*** IDirect3DRMMeshBuilder2 methods ***/
...
...
@@ -1080,13 +1080,19 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_GetName(IDirect3DRMMeshBuilder
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder3Impl_GetClassName
(
IDirect3DRMMeshBuilder3
*
iface
,
LPDWORD
lpdwSize
,
LPSTR
lpN
ame
)
LPDWORD
size
,
LPSTR
n
ame
)
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder3
(
iface
);
FIXME
(
"(%p)->(%p,%p): stub
\n
"
,
This
,
lpdwSize
,
lpN
ame
);
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
size
,
n
ame
);
return
E_NOTIMPL
;
if
(
!
size
||
*
size
<
strlen
(
"Builder"
)
||
!
name
)
return
E_INVALIDARG
;
strcpy
(
name
,
"Builder"
);
*
size
=
sizeof
(
"Builder"
);
return
D3DRM_OK
;
}
HRESULT
load_mesh_data
(
IDirect3DRMMeshBuilder3
*
iface
,
LPDIRECTXFILEDATA
pData
)
...
...
dlls/d3drm/tests/d3drm.c
View file @
afe616b5
...
...
@@ -198,13 +198,18 @@ static void test_MeshBuilder(void)
hr
=
IDirect3DRM_CreateMeshBuilder
(
pD3DRM
,
&
pMeshBuilder
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMMeshBuilder interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMMeshBuilder_GetClassName
(
pMeshBuilder
,
NULL
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
hr
=
IDirect3DRMMeshBuilder_GetClassName
(
pMeshBuilder
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
1
;
hr
=
IDirect3DRMMeshBuilder_GetClassName
(
pMeshBuilder
,
&
size
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
sizeof
(
cname
);
hr
=
IDirect3DRMMeshBuilder_GetClassName
(
pMeshBuilder
,
&
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
(
"Builder"
),
"wrong strlen
: %u
\n
"
,
size
);
ok
(
!
strcmp
(
cname
,
"Builder"
),
"Expected cname to be
\"
Builder
\"
, but got
\"
%s
\"\n
"
,
cname
);
}
info
.
lpMemory
=
data_bad_version
;
info
.
dSize
=
strlen
(
data_bad_version
);
...
...
@@ -463,13 +468,18 @@ static void test_MeshBuilder3(void)
hr
=
IDirect3DRM3_CreateMeshBuilder
(
pD3DRM3
,
&
pMeshBuilder3
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMMeshBuilder3 interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMMeshBuilder3_GetClassName
(
pMeshBuilder3
,
NULL
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
hr
=
IDirect3DRMMeshBuilder3_GetClassName
(
pMeshBuilder3
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
1
;
hr
=
IDirect3DRMMeshBuilder3_GetClassName
(
pMeshBuilder3
,
&
size
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
sizeof
(
cname
);
hr
=
IDirect3DRMMeshBuilder3_GetClassName
(
pMeshBuilder3
,
&
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
(
"Builder"
),
"wrong strlen
: %u
\n
"
,
size
);
ok
(
!
strcmp
(
cname
,
"Builder"
),
"Expected cname to be
\"
Builder
\"
, but got
\"
%s
\"\n
"
,
cname
);
}
info
.
lpMemory
=
data_bad_version
;
info
.
dSize
=
strlen
(
data_bad_version
);
...
...
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