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
074465b6
Commit
074465b6
authored
Mar 01, 2010
by
Christian Costa
Committed by
Alexandre Julliard
Mar 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Allow templates to be defined anywhere in objects file.
parent
cf663d17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
d3dxof.c
dlls/d3dxof/d3dxof.c
+17
-0
No files found.
dlls/d3dxof/d3dxof.c
View file @
074465b6
...
...
@@ -1034,6 +1034,23 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
return
DXFILEERR_NOMOREOBJECTS
;
}
/* Check if there are templates defined before the object */
while
(
This
->
buf
.
rem_bytes
&&
is_template_available
(
&
This
->
buf
))
{
if
(
!
parse_template
(
&
This
->
buf
))
{
TRACE
(
"Template is not correct
\n
"
);
hr
=
DXFILEERR_BADVALUE
;
goto
error
;
}
else
{
TRACE
(
"Template successfully parsed:
\n
"
);
if
(
TRACE_ON
(
d3dxof
))
dump_template
(
This
->
pDirectXFile
->
xtemplates
,
&
This
->
pDirectXFile
->
xtemplates
[
This
->
pDirectXFile
->
nb_xtemplates
-
1
]);
}
}
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