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
86d7f9f5
Commit
86d7f9f5
authored
Nov 11, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Nov 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Prepare support for objects binary format.
parent
641200dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
d3dxof.c
dlls/d3dxof/d3dxof.c
+11
-8
No files found.
dlls/d3dxof/d3dxof.c
View file @
86d7f9f5
...
...
@@ -306,7 +306,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
object
->
hFile
=
hFile
;
object
->
pDirectXFile
=
This
;
object
->
buf
.
pdxf
=
This
;
object
->
buf
.
txt
=
TRUE
;
object
->
buf
.
txt
=
(
header
[
2
]
==
XOFFILE_FORMAT_TEXT
)
;
object
->
buf
.
token_present
=
FALSE
;
object
->
buf
.
cur_subobject
=
0
;
...
...
@@ -1803,7 +1803,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
for
(
k
=
0
;
k
<
nb_elems
;
k
++
)
{
if
(
k
)
if
(
buf
->
txt
&&
k
)
{
token
=
check_TOKEN
(
buf
);
if
(
token
==
TOKEN_COMMA
)
...
...
@@ -1937,13 +1937,16 @@ static BOOL parse_object_members_list(parse_buffer * buf)
}
}
token
=
get_TOKEN
(
buf
);
if
(
token
!=
TOKEN_SEMICOLON
)
if
(
buf
->
txt
)
{
/* Allow comma instead of semicolon in some specific cases */
if
(
!
((
token
==
TOKEN_COMMA
)
&&
((
i
+
1
)
<
pt
->
nb_members
)
&&
(
pt
->
members
[
i
].
type
==
pt
->
members
[
i
+
1
].
type
)
&&
(
!
pt
->
members
[
i
].
nb_dims
)
&&
(
!
pt
->
members
[
i
+
1
].
nb_dims
)))
return
FALSE
;
token
=
get_TOKEN
(
buf
);
if
(
token
!=
TOKEN_SEMICOLON
)
{
/* Allow comma instead of semicolon in some specific cases */
if
(
!
((
token
==
TOKEN_COMMA
)
&&
((
i
+
1
)
<
pt
->
nb_members
)
&&
(
pt
->
members
[
i
].
type
==
pt
->
members
[
i
+
1
].
type
)
&&
(
!
pt
->
members
[
i
].
nb_dims
)
&&
(
!
pt
->
members
[
i
+
1
].
nb_dims
)))
return
FALSE
;
}
}
}
...
...
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