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
1af38621
Commit
1af38621
authored
Jan 03, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Avoid signed-unsigned integer comparisons.
parent
b6663f8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
d3dxof.c
dlls/d3dxof/d3dxof.c
+4
-4
parsing.c
dlls/d3dxof/parsing.c
+8
-8
No files found.
dlls/d3dxof/d3dxof.c
View file @
1af38621
...
...
@@ -248,7 +248,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
if
(
TRACE_ON
(
d3dxof
))
{
int
i
;
ULONG
i
;
TRACE
(
"Registered templates (%d):
\n
"
,
This
->
nb_xtemplates
);
for
(
i
=
0
;
i
<
This
->
nb_xtemplates
;
i
++
)
DPRINTF
(
"%s - %s
\n
"
,
This
->
xtemplates
[
i
].
name
,
debugstr_guid
(
&
This
->
xtemplates
[
i
].
class_id
));
...
...
@@ -326,7 +326,7 @@ static HRESULT WINAPI IDirectXFileImpl_RegisterTemplates(IDirectXFile* iface, LP
if
(
TRACE_ON
(
d3dxof
))
{
int
i
;
ULONG
i
;
TRACE
(
"Registered templates (%d):
\n
"
,
This
->
nb_xtemplates
);
for
(
i
=
0
;
i
<
This
->
nb_xtemplates
;
i
++
)
DPRINTF
(
"%s - %s
\n
"
,
This
->
xtemplates
[
i
].
name
,
debugstr_guid
(
&
This
->
xtemplates
[
i
].
class_id
));
...
...
@@ -616,7 +616,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetData(IDirectXFileData* iface, LPCS
if
(
szMember
)
{
int
i
;
ULONG
i
;
for
(
i
=
0
;
i
<
This
->
pobj
->
nb_members
;
i
++
)
if
(
!
strcmp
(
This
->
pobj
->
members
[
i
].
name
,
szMember
))
break
;
...
...
@@ -968,7 +968,7 @@ static ULONG WINAPI IDirectXFileEnumObjectImpl_Release(IDirectXFileEnumObject* i
if
(
!
ref
)
{
int
i
;
ULONG
i
;
for
(
i
=
0
;
i
<
This
->
nb_xobjects
;
i
++
)
IDirectXFileData_Release
(
This
->
pRefObjects
[
i
]);
if
(
This
->
mapped_memory
)
...
...
dlls/d3dxof/parsing.c
View file @
1af38621
...
...
@@ -124,7 +124,7 @@ static const char* get_primitive_string(WORD token)
static
void
dump_template
(
xtemplate
*
templates_array
,
xtemplate
*
ptemplate
)
{
int
j
,
k
;
ULONG
j
,
k
;
GUID
*
clsid
;
clsid
=
&
ptemplate
->
class_id
;
...
...
@@ -1171,15 +1171,15 @@ static BOOL parse_object_parts(parse_buffer * buf, BOOL allow_optional);
static
BOOL
parse_object_members_list
(
parse_buffer
*
buf
)
{
DWORD
token
;
int
i
;
ULONG
i
;
xtemplate
*
pt
=
buf
->
pxt
[
buf
->
level
];
buf
->
pxo
->
nb_members
=
pt
->
nb_members
;
for
(
i
=
0
;
i
<
pt
->
nb_members
;
i
++
)
{
int
k
;
int
nb_elems
=
1
;
ULONG
k
;
ULONG
nb_elems
=
1
;
buf
->
pxo
->
members
[
i
].
name
=
pt
->
members
[
i
].
name
;
buf
->
pxo
->
members
[
i
].
start
=
buf
->
cur_pos_data
;
...
...
@@ -1192,7 +1192,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
nb_elems
*=
*
(
DWORD
*
)(
buf
->
pxo
->
root
->
pdata
+
buf
->
pxo
->
members
[
pt
->
members
[
i
].
dim_value
[
k
]].
start
);
}
TRACE
(
"Elements to consider: %
d
\n
"
,
nb_elems
);
TRACE
(
"Elements to consider: %
u
\n
"
,
nb_elems
);
for
(
k
=
0
;
k
<
nb_elems
;
k
++
)
{
...
...
@@ -1213,7 +1213,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
if
(
pt
->
members
[
i
].
type
==
TOKEN_NAME
)
{
int
j
;
ULONG
j
;
TRACE
(
"Found sub-object %s
\n
"
,
buf
->
pdxf
->
xtemplates
[
pt
->
members
[
i
].
idx_template
].
name
);
buf
->
level
++
;
...
...
@@ -1351,7 +1351,7 @@ static BOOL parse_object_parts(parse_buffer * buf, BOOL allow_optional)
{
if
(
check_TOKEN
(
buf
)
==
TOKEN_OBRACE
)
{
int
i
,
j
;
ULONG
i
,
j
;
get_TOKEN
(
buf
);
if
(
get_TOKEN
(
buf
)
!=
TOKEN_NAME
)
return
FALSE
;
...
...
@@ -1423,7 +1423,7 @@ _exit:
BOOL
parse_object
(
parse_buffer
*
buf
)
{
int
i
;
ULONG
i
;
buf
->
pxo
->
pos_data
=
buf
->
cur_pos_data
;
buf
->
pxo
->
ptarget
=
NULL
;
...
...
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