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
40b15a38
Commit
40b15a38
authored
Feb 20, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Feb 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Make sure the returned object pointer is null when there is no more object.
parent
36d4e1ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
d3dxof.c
dlls/d3dxof/d3dxof.c
+6
-1
No files found.
dlls/d3dxof/d3dxof.c
View file @
40b15a38
...
...
@@ -988,17 +988,22 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
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
))
{
if
(
!
parse_templates
(
&
This
->
buf
))
{
hr
=
DXFILEERR_BADVALUE
;
goto
error
;
}
if
(
!
This
->
buf
.
rem_bytes
)
{
*
ppDataObj
=
NULL
;
return
DXFILEERR_NOMOREOBJECTS
;
}
hr
=
IDirectXFileDataImpl_Create
(
&
object
);
if
(
FAILED
(
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