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
87d7fe68
Commit
87d7fe68
authored
Sep 16, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Sep 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Checkout output pointer and set returned interface to NULL at the beginning.
parent
d8d58b23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
d3dxof.c
dlls/d3dxof/d3dxof.c
+5
-8
No files found.
dlls/d3dxof/d3dxof.c
View file @
87d7fe68
...
...
@@ -987,27 +987,25 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
IDirectXFileDataImpl
*
object
;
HRESULT
hr
;
if
(
!
ppDataObj
)
return
E_POINTER
;
*
ppDataObj
=
NULL
;
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
ppDataObj
);
if
(
This
->
nb_xobjects
>=
MAX_OBJECTS
)
{
ERR
(
"Too many objects
\n
"
);
*
ppDataObj
=
NULL
;
return
DXFILEERR_NOMOREOBJECTS
;
}
/* Check if there are templates defined before the object */
if
(
!
parse_templates
(
&
This
->
buf
))
{
*
ppDataObj
=
NULL
;
return
DXFILEERR_BADVALUE
;
}
if
(
!
This
->
buf
.
rem_bytes
)
{
*
ppDataObj
=
NULL
;
return
DXFILEERR_NOMOREOBJECTS
;
}
hr
=
IDirectXFileDataImpl_Create
(
&
object
);
if
(
FAILED
(
hr
))
...
...
@@ -1064,7 +1062,6 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
error:
IDirectXFileData_Release
(
&
object
->
IDirectXFileData_iface
);
*
ppDataObj
=
NULL
;
return
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