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
8ca8267c
Commit
8ca8267c
authored
Aug 03, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Fix the spelling of the children structure fields and constants.
parent
70c9510b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
d3dxof.c
dlls/d3dxof/d3dxof.c
+5
-5
d3dxof_private.h
dlls/d3dxof/d3dxof_private.h
+5
-5
parsing.c
dlls/d3dxof/parsing.c
+15
-15
No files found.
dlls/d3dxof/d3dxof.c
View file @
8ca8267c
...
...
@@ -615,7 +615,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
ppChildObj
);
if
(
This
->
cur_enum_object
>=
This
->
pobj
->
nb_child
s
)
if
(
This
->
cur_enum_object
>=
This
->
pobj
->
nb_child
ren
)
return
DXFILEERR_NOMOREOBJECTS
;
if
(
This
->
from_ref
&&
(
This
->
level
>=
1
))
...
...
@@ -624,7 +624,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface
return
DXFILEERR_NOMOREOBJECTS
;
}
if
(
This
->
pobj
->
child
s
[
This
->
cur_enum_object
]
->
binary
)
if
(
This
->
pobj
->
child
ren
[
This
->
cur_enum_object
]
->
binary
)
{
IDirectXFileBinaryImpl
*
object
;
...
...
@@ -634,7 +634,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface
*
ppChildObj
=
(
LPDIRECTXFILEOBJECT
)
&
object
->
IDirectXFileBinary_iface
;
}
else
if
(
This
->
pobj
->
child
s
[
This
->
cur_enum_object
]
->
ptarget
)
else
if
(
This
->
pobj
->
child
ren
[
This
->
cur_enum_object
]
->
ptarget
)
{
IDirectXFileDataReferenceImpl
*
object
;
...
...
@@ -642,7 +642,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface
if
(
FAILED
(
hr
))
return
hr
;
object
->
ptarget
=
This
->
pobj
->
child
s
[
This
->
cur_enum_object
++
]
->
ptarget
;
object
->
ptarget
=
This
->
pobj
->
child
ren
[
This
->
cur_enum_object
++
]
->
ptarget
;
*
ppChildObj
=
(
LPDIRECTXFILEOBJECT
)
&
object
->
IDirectXFileDataReference_iface
;
}
...
...
@@ -654,7 +654,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface
if
(
FAILED
(
hr
))
return
hr
;
object
->
pobj
=
This
->
pobj
->
child
s
[
This
->
cur_enum_object
++
];
object
->
pobj
=
This
->
pobj
->
child
ren
[
This
->
cur_enum_object
++
];
object
->
cur_enum_object
=
0
;
object
->
from_ref
=
This
->
from_ref
;
object
->
level
=
This
->
level
+
1
;
...
...
dlls/d3dxof/d3dxof_private.h
View file @
8ca8267c
...
...
@@ -36,7 +36,7 @@
#define MAX_NAME_LEN 32
#define MAX_ARRAY_DIM 4
#define MAX_MEMBERS 50
#define MAX_CHILD
S
100
#define MAX_CHILD
REN
100
#define MAX_TEMPLATES 200
#define MAX_OBJECTS 500
#define MAX_SUBOBJECTS 2000
...
...
@@ -56,8 +56,8 @@ typedef struct {
GUID
class_id
;
BOOL
open
;
BOOL
binary
;
ULONG
nb_child
s
;
char
child
s
[
MAX_CHILDS
][
MAX_NAME_LEN
];
ULONG
nb_child
ren
;
char
child
ren
[
MAX_CHILDREN
][
MAX_NAME_LEN
];
ULONG
nb_members
;
member
members
[
MAX_MEMBERS
];
}
xtemplate
;
...
...
@@ -79,9 +79,9 @@ struct _xobject {
DWORD
size
;
ULONG
nb_members
;
xobject_member
members
[
MAX_MEMBERS
];
ULONG
nb_child
s
;
ULONG
nb_child
ren
;
ULONG
nb_subobjects
;
struct
_xobject
*
child
s
[
MAX_CHILDS
];
struct
_xobject
*
child
ren
[
MAX_CHILDREN
];
struct
_xobject
*
root
;
};
...
...
dlls/d3dxof/parsing.c
View file @
8ca8267c
...
...
@@ -156,11 +156,11 @@ static void dump_template(xtemplate* templates_array, xtemplate* ptemplate)
}
if
(
ptemplate
->
open
)
DPRINTF
(
"[...]
\n
"
);
else
if
(
ptemplate
->
nb_child
s
)
else
if
(
ptemplate
->
nb_child
ren
)
{
DPRINTF
(
"[%s"
,
ptemplate
->
child
s
[
0
]);
for
(
j
=
1
;
j
<
ptemplate
->
nb_child
s
;
j
++
)
DPRINTF
(
",%s"
,
ptemplate
->
child
s
[
j
]);
DPRINTF
(
"[%s"
,
ptemplate
->
child
ren
[
0
]);
for
(
j
=
1
;
j
<
ptemplate
->
nb_child
ren
;
j
++
)
DPRINTF
(
",%s"
,
ptemplate
->
child
ren
[
j
]);
DPRINTF
(
"]
\n
"
);
}
DPRINTF
(
"}
\n
"
);
...
...
@@ -909,10 +909,10 @@ static BOOL parse_template_option_info(parse_buffer * buf)
{
if
(
get_TOKEN
(
buf
)
!=
TOKEN_NAME
)
return
FALSE
;
strcpy
(
cur_template
->
child
s
[
cur_template
->
nb_childs
],
(
char
*
)
buf
->
value
);
strcpy
(
cur_template
->
child
ren
[
cur_template
->
nb_children
],
(
char
*
)
buf
->
value
);
if
(
check_TOKEN
(
buf
)
==
TOKEN_GUID
)
get_TOKEN
(
buf
);
cur_template
->
nb_child
s
++
;
cur_template
->
nb_child
ren
++
;
if
(
check_TOKEN
(
buf
)
!=
TOKEN_COMMA
)
break
;
get_TOKEN
(
buf
);
...
...
@@ -1305,7 +1305,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
static
BOOL
parse_object_parts
(
parse_buffer
*
buf
,
BOOL
allow_optional
)
{
buf
->
pxo
->
nb_child
s
=
0
;
buf
->
pxo
->
nb_child
ren
=
0
;
if
(
!
parse_object_members_list
(
buf
))
return
FALSE
;
...
...
@@ -1350,10 +1350,10 @@ _exit:
return
FALSE
;
}
buf
->
pxo
->
child
s
[
buf
->
pxo
->
nb_childs
]
=
&
buf
->
pxo_tab
[
buf
->
pxo
->
root
->
nb_subobjects
++
];
buf
->
pxo
->
child
s
[
buf
->
pxo
->
nb_childs
]
->
ptarget
=
&
(
buf
->
pxo_globals
[
i
])[
j
];
buf
->
pxo
->
child
s
[
buf
->
pxo
->
nb_childs
]
->
binary
=
FALSE
;
buf
->
pxo
->
nb_child
s
++
;
buf
->
pxo
->
child
ren
[
buf
->
pxo
->
nb_children
]
=
&
buf
->
pxo_tab
[
buf
->
pxo
->
root
->
nb_subobjects
++
];
buf
->
pxo
->
child
ren
[
buf
->
pxo
->
nb_children
]
->
ptarget
=
&
(
buf
->
pxo_globals
[
i
])[
j
];
buf
->
pxo
->
child
ren
[
buf
->
pxo
->
nb_children
]
->
binary
=
FALSE
;
buf
->
pxo
->
nb_child
ren
++
;
}
else
if
(
check_TOKEN
(
buf
)
==
TOKEN_NAME
)
{
...
...
@@ -1365,7 +1365,7 @@ _exit:
return
FALSE
;
}
buf
->
pxo
=
buf
->
pxo
->
child
s
[
buf
->
pxo
->
nb_childs
]
=
&
buf
->
pxo_tab
[
buf
->
pxo
->
root
->
nb_subobjects
++
];
buf
->
pxo
=
buf
->
pxo
->
child
ren
[
buf
->
pxo
->
nb_children
]
=
&
buf
->
pxo_tab
[
buf
->
pxo
->
root
->
nb_subobjects
++
];
TRACE
(
"Enter optional %s
\n
"
,
(
char
*
)
buf
->
value
);
buf
->
level
++
;
...
...
@@ -1376,16 +1376,16 @@ _exit:
}
buf
->
level
--
;
buf
->
pxo
=
pxo
;
buf
->
pxo
->
nb_child
s
++
;
buf
->
pxo
->
nb_child
ren
++
;
}
else
break
;
}
}
if
(
buf
->
pxo
->
nb_child
s
>
MAX_CHILDS
)
if
(
buf
->
pxo
->
nb_child
ren
>
MAX_CHILDREN
)
{
FIXME
(
"Too many children %d
\n
"
,
buf
->
pxo
->
nb_child
s
);
FIXME
(
"Too many children %d
\n
"
,
buf
->
pxo
->
nb_child
ren
);
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