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
e458665a
Commit
e458665a
authored
Feb 28, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Avoid signed-unsigned integer comparisons.
parent
bb3549fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
converter.c
dlls/windowscodecs/converter.c
+18
-18
No files found.
dlls/windowscodecs/converter.c
View file @
e458665a
...
@@ -93,7 +93,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -93,7 +93,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -160,7 +160,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -160,7 +160,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -223,7 +223,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -223,7 +223,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -283,7 +283,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -283,7 +283,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -325,7 +325,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -325,7 +325,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -378,7 +378,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -378,7 +378,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -420,7 +420,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -420,7 +420,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -468,7 +468,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -468,7 +468,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -516,7 +516,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -516,7 +516,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -564,7 +564,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -564,7 +564,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -607,7 +607,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -607,7 +607,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -655,7 +655,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -655,7 +655,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
res
=
IWICBitmapSource_CopyPixels
(
This
->
source
,
prc
,
cbStride
,
cbBufferSize
,
pbBuffer
);
res
=
IWICBitmapSource_CopyPixels
(
This
->
source
,
prc
,
cbStride
,
cbBufferSize
,
pbBuffer
);
if
(
FAILED
(
res
))
return
res
;
if
(
FAILED
(
res
))
return
res
;
...
@@ -674,7 +674,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -674,7 +674,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
res
=
IWICBitmapSource_CopyPixels
(
This
->
source
,
prc
,
cbStride
,
cbBufferSize
,
pbBuffer
);
res
=
IWICBitmapSource_CopyPixels
(
This
->
source
,
prc
,
cbStride
,
cbBufferSize
,
pbBuffer
);
if
(
FAILED
(
res
))
return
res
;
if
(
FAILED
(
res
))
return
res
;
...
@@ -696,7 +696,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -696,7 +696,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -740,7 +740,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
...
@@ -740,7 +740,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -838,7 +838,7 @@ static HRESULT copypixels_to_32bppPBGRA(struct FormatConverter *This, const WICR
...
@@ -838,7 +838,7 @@ static HRESULT copypixels_to_32bppPBGRA(struct FormatConverter *This, const WICR
hr
=
copypixels_to_32bppBGRA
(
This
,
prc
,
cbStride
,
cbBufferSize
,
pbBuffer
,
source_format
);
hr
=
copypixels_to_32bppBGRA
(
This
,
prc
,
cbStride
,
cbBufferSize
,
pbBuffer
,
source_format
);
if
(
SUCCEEDED
(
hr
)
&&
prc
)
if
(
SUCCEEDED
(
hr
)
&&
prc
)
{
{
U
INT
x
,
y
;
INT
x
,
y
;
for
(
y
=
0
;
y
<
prc
->
Height
;
y
++
)
for
(
y
=
0
;
y
<
prc
->
Height
;
y
++
)
for
(
x
=
0
;
x
<
prc
->
Width
;
x
++
)
for
(
x
=
0
;
x
<
prc
->
Width
;
x
++
)
...
@@ -879,7 +879,7 @@ static HRESULT copypixels_to_24bppBGR(struct FormatConverter *This, const WICRec
...
@@ -879,7 +879,7 @@ static HRESULT copypixels_to_24bppBGR(struct FormatConverter *This, const WICRec
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
@@ -947,7 +947,7 @@ static HRESULT copypixels_to_24bppRGB(struct FormatConverter *This, const WICRec
...
@@ -947,7 +947,7 @@ static HRESULT copypixels_to_24bppRGB(struct FormatConverter *This, const WICRec
if
(
prc
)
if
(
prc
)
{
{
HRESULT
res
;
HRESULT
res
;
U
INT
x
,
y
;
INT
x
,
y
;
BYTE
*
srcdata
;
BYTE
*
srcdata
;
UINT
srcstride
,
srcdatasize
;
UINT
srcstride
,
srcdatasize
;
const
BYTE
*
srcrow
;
const
BYTE
*
srcrow
;
...
...
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