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
76d52393
Commit
76d52393
authored
Dec 16, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Dec 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Add some preliminary support for binary objects.
parent
40c5c8ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
d3dxof.c
dlls/d3dxof/d3dxof.c
+32
-1
d3dxof_private.h
dlls/d3dxof/d3dxof_private.h
+2
-0
No files found.
dlls/d3dxof/d3dxof.c
View file @
76d52393
...
...
@@ -1347,6 +1347,27 @@ static const IDirectXFileVtbl IDirectXFile_Vtbl =
IDirectXFileImpl_RegisterTemplates
};
static
HRESULT
IDirectXFileBinaryImpl_Create
(
IDirectXFileBinaryImpl
**
ppObj
)
{
IDirectXFileBinaryImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectXFileBinaryImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
DXFILEERR_BADALLOC
;
}
object
->
lpVtbl
.
lpVtbl
=
&
IDirectXFileBinary_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
object
;
return
DXFILE_OK
;
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
IDirectXFileBinaryImpl_QueryInterface
(
IDirectXFileBinary
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
...
...
@@ -1606,7 +1627,17 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface
return
DXFILEERR_NOMOREOBJECTS
;
}
if
(
This
->
pobj
->
childs
[
This
->
cur_enum_object
]
->
ptarget
)
if
(
This
->
pobj
->
childs
[
This
->
cur_enum_object
]
->
binary
)
{
IDirectXFileBinaryImpl
*
object
;
hr
=
IDirectXFileBinaryImpl_Create
(
&
object
);
if
(
FAILED
(
hr
))
return
hr
;
*
ppChildObj
=
(
LPDIRECTXFILEOBJECT
)
object
;
}
else
if
(
This
->
pobj
->
childs
[
This
->
cur_enum_object
]
->
ptarget
)
{
IDirectXFileDataReferenceImpl
*
object
;
...
...
dlls/d3dxof/d3dxof_private.h
View file @
76d52393
...
...
@@ -55,6 +55,7 @@ typedef struct {
char
name
[
MAX_NAME_LEN
];
GUID
class_id
;
BOOL
open
;
BOOL
binary
;
ULONG
nb_childs
;
char
childs
[
MAX_CHILDS
][
MAX_NAME_LEN
];
ULONG
nb_members
;
...
...
@@ -68,6 +69,7 @@ typedef struct {
}
xobject_member
;
struct
_xobject
{
BOOL
binary
;
struct
_xobject
*
ptarget
;
char
name
[
MAX_NAME_LEN
];
GUID
class_id
;
...
...
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