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
a4d3dbf6
Commit
a4d3dbf6
authored
Apr 28, 2013
by
Christian Costa
Committed by
Alexandre Julliard
Apr 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Return correct error code in case of parsing failure.
parent
692783a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
d3dxof.c
dlls/d3dxof/d3dxof.c
+7
-5
No files found.
dlls/d3dxof/d3dxof.c
View file @
a4d3dbf6
...
...
@@ -241,8 +241,9 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
if
(
FAILED
(
hr
))
goto
error
;
if
(
!
parse_templates
(
&
object
->
buf
))
{
hr
=
DXFILEERR_BADVALUE
;
if
(
!
parse_templates
(
&
object
->
buf
))
{
hr
=
DXFILEERR_PARSEERROR
;
goto
error
;
}
...
...
@@ -319,8 +320,9 @@ static HRESULT WINAPI IDirectXFileImpl_RegisterTemplates(IDirectXFile* iface, LP
if
(
FAILED
(
hr
))
goto
cleanup
;
if
(
!
parse_templates
(
&
buf
))
{
hr
=
DXFILEERR_BADVALUE
;
if
(
!
parse_templates
(
&
buf
))
{
hr
=
DXFILEERR_PARSEERROR
;
goto
cleanup
;
}
...
...
@@ -1002,7 +1004,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
/* Check if there are templates defined before the object */
if
(
!
parse_templates
(
&
This
->
buf
))
return
DXFILEERR_
BADVALUE
;
return
DXFILEERR_
PARSEERROR
;
if
(
!
This
->
buf
.
rem_bytes
)
return
DXFILEERR_NOMOREOBJECTS
;
...
...
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