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
40c5c8ad
Commit
40c5c8ad
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: Improve IDirectXFileImpl_CreateSaveObject stub.
parent
4307c14a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
d3dxof.c
dlls/d3dxof/d3dxof.c
+27
-2
No files found.
dlls/d3dxof/d3dxof.c
View file @
40c5c8ad
...
...
@@ -98,6 +98,7 @@ static WORD check_TOKEN(parse_buffer * buf);
static
BOOL
parse_template
(
parse_buffer
*
buf
);
static
HRESULT
IDirectXFileDataReferenceImpl_Create
(
IDirectXFileDataReferenceImpl
**
ppObj
);
static
HRESULT
IDirectXFileEnumObjectImpl_Create
(
IDirectXFileEnumObjectImpl
**
ppObj
);
static
HRESULT
IDirectXFileSaveObjectImpl_Create
(
IDirectXFileSaveObjectImpl
**
ppObj
);
static
void
dump_template
(
xtemplate
*
templates_array
,
xtemplate
*
ptemplate
)
{
...
...
@@ -377,9 +378,12 @@ static HRESULT WINAPI IDirectXFileImpl_CreateSaveObject(IDirectXFile* iface, LPC
{
IDirectXFileImpl
*
This
=
(
IDirectXFileImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%s,%x,%p) stub!
\n
"
,
This
,
iface
,
szFileName
,
dwFileFormat
,
ppSaveObj
);
FIXME
(
"(%p/%p)->(%s,%x,%p)
partial
stub!
\n
"
,
This
,
iface
,
szFileName
,
dwFileFormat
,
ppSaveObj
);
return
DXFILEERR_BADVALUE
;
if
(
!
szFileName
||
!
ppSaveObj
)
return
E_POINTER
;
return
IDirectXFileSaveObjectImpl_Create
((
IDirectXFileSaveObjectImpl
**
)
ppSaveObj
);
}
static
BOOL
read_bytes
(
parse_buffer
*
buf
,
LPVOID
data
,
DWORD
size
)
...
...
@@ -2352,6 +2356,27 @@ static const IDirectXFileObjectVtbl IDirectXFileObject_Vtbl =
IDirectXFileObjectImpl_GetId
};
static
HRESULT
IDirectXFileSaveObjectImpl_Create
(
IDirectXFileSaveObjectImpl
**
ppObj
)
{
IDirectXFileSaveObjectImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectXFileSaveObjectImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
DXFILEERR_BADALLOC
;
}
object
->
lpVtbl
.
lpVtbl
=
&
IDirectXFileSaveObject_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
object
;
return
S_OK
;
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
IDirectXFileSaveObjectImpl_QueryInterface
(
IDirectXFileSaveObject
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
...
...
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