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
1a45569f
Commit
1a45569f
authored
Jan 03, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Avoid signed-unsigned integer comparisons.
parent
1af38621
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
skin.c
dlls/d3dx9_36/skin.c
+1
-1
surface.c
dlls/d3dx9_36/surface.c
+6
-6
No files found.
dlls/d3dx9_36/skin.c
View file @
1a45569f
...
@@ -83,7 +83,7 @@ static ULONG WINAPI ID3DXSkinInfoImpl_Release(ID3DXSkinInfo *iface)
...
@@ -83,7 +83,7 @@ static ULONG WINAPI ID3DXSkinInfoImpl_Release(ID3DXSkinInfo *iface)
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
ref
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
if
(
ref
==
0
)
{
int
i
;
DWORD
i
;
for
(
i
=
0
;
i
<
This
->
num_bones
;
i
++
)
{
for
(
i
=
0
;
i
<
This
->
num_bones
;
i
++
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
bones
[
i
].
name
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
bones
[
i
].
name
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
bones
[
i
].
vertices
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
bones
[
i
].
vertices
);
...
...
dlls/d3dx9_36/surface.c
View file @
1a45569f
...
@@ -49,7 +49,7 @@ static const struct
...
@@ -49,7 +49,7 @@ static const struct
static
D3DFORMAT
wic_guid_to_d3dformat
(
const
GUID
*
guid
)
static
D3DFORMAT
wic_guid_to_d3dformat
(
const
GUID
*
guid
)
{
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
wic_pixel_formats
)
/
sizeof
(
wic_pixel_formats
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
wic_pixel_formats
)
/
sizeof
(
wic_pixel_formats
[
0
]);
i
++
)
{
{
...
@@ -62,7 +62,7 @@ static D3DFORMAT wic_guid_to_d3dformat(const GUID *guid)
...
@@ -62,7 +62,7 @@ static D3DFORMAT wic_guid_to_d3dformat(const GUID *guid)
static
const
GUID
*
d3dformat_to_wic_guid
(
D3DFORMAT
format
)
static
const
GUID
*
d3dformat_to_wic_guid
(
D3DFORMAT
format
)
{
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
wic_pixel_formats
)
/
sizeof
(
wic_pixel_formats
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
wic_pixel_formats
)
/
sizeof
(
wic_pixel_formats
[
0
]);
i
++
)
{
{
...
@@ -143,7 +143,7 @@ struct dds_header
...
@@ -143,7 +143,7 @@ struct dds_header
static
D3DFORMAT
dds_fourcc_to_d3dformat
(
DWORD
fourcc
)
static
D3DFORMAT
dds_fourcc_to_d3dformat
(
DWORD
fourcc
)
{
{
int
i
;
unsigned
int
i
;
static
const
DWORD
known_fourcc
[]
=
{
static
const
DWORD
known_fourcc
[]
=
{
MAKEFOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
),
MAKEFOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
),
MAKEFOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
),
MAKEFOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
),
...
@@ -193,7 +193,7 @@ static const struct {
...
@@ -193,7 +193,7 @@ static const struct {
static
D3DFORMAT
dds_rgb_to_d3dformat
(
const
struct
dds_pixel_format
*
pixel_format
)
static
D3DFORMAT
dds_rgb_to_d3dformat
(
const
struct
dds_pixel_format
*
pixel_format
)
{
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
rgb_pixel_formats
)
/
sizeof
(
rgb_pixel_formats
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
rgb_pixel_formats
)
/
sizeof
(
rgb_pixel_formats
[
0
]);
i
++
)
{
{
...
@@ -278,7 +278,7 @@ static D3DFORMAT dds_pixel_format_to_d3dformat(const struct dds_pixel_format *pi
...
@@ -278,7 +278,7 @@ static D3DFORMAT dds_pixel_format_to_d3dformat(const struct dds_pixel_format *pi
static
HRESULT
d3dformat_to_dds_pixel_format
(
struct
dds_pixel_format
*
pixel_format
,
D3DFORMAT
d3dformat
)
static
HRESULT
d3dformat_to_dds_pixel_format
(
struct
dds_pixel_format
*
pixel_format
,
D3DFORMAT
d3dformat
)
{
{
int
i
;
unsigned
int
i
;
memset
(
pixel_format
,
0
,
sizeof
(
*
pixel_format
));
memset
(
pixel_format
,
0
,
sizeof
(
*
pixel_format
));
...
@@ -575,7 +575,7 @@ HRESULT load_cube_texture_from_dds(IDirect3DCubeTexture9 *cube_texture, const vo
...
@@ -575,7 +575,7 @@ HRESULT load_cube_texture_from_dds(IDirect3DCubeTexture9 *cube_texture, const vo
{
{
HRESULT
hr
;
HRESULT
hr
;
int
face
;
int
face
;
int
mip_level
;
UINT
mip_level
;
UINT
size
;
UINT
size
;
RECT
src_rect
;
RECT
src_rect
;
UINT
src_pitch
;
UINT
src_pitch
;
...
...
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