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
23fde785
Commit
23fde785
authored
Dec 28, 2012
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Avoid signed-unsigned integer comparisons.
parent
a377563b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
10 deletions
+14
-10
imagelist.c
dlls/comctl32/imagelist.c
+1
-1
monthcal.c
dlls/comctl32/monthcal.c
+4
-2
rebar.c
dlls/comctl32/rebar.c
+1
-1
status.c
dlls/comctl32/status.c
+6
-4
updown.c
dlls/comctl32/updown.c
+2
-2
No files found.
dlls/comctl32/imagelist.c
View file @
23fde785
...
...
@@ -2235,7 +2235,7 @@ HIMAGELIST WINAPI ImageList_Read (LPSTREAM pstm)
void
*
image_bits
,
*
mask_bits
=
NULL
;
ILHEAD
ilHead
;
HIMAGELIST
himl
;
int
i
;
unsigned
int
i
;
TRACE
(
"%p
\n
"
,
pstm
);
...
...
dlls/comctl32/monthcal.c
View file @
23fde785
...
...
@@ -1076,7 +1076,8 @@ static void MONTHCAL_PaintFocusAndCircle(const MONTHCAL_INFO *infoPtr, HDC hdc,
/* months before first calendar month and after last calendar month */
static
void
MONTHCAL_PaintLeadTrailMonths
(
const
MONTHCAL_INFO
*
infoPtr
,
HDC
hdc
,
const
PAINTSTRUCT
*
ps
)
{
INT
mask
,
length
,
index
;
INT
mask
,
index
;
UINT
length
;
SYSTEMTIME
st_max
,
st
;
if
(
infoPtr
->
dwStyle
&
MCS_NOTRAILINGDATES
)
return
;
...
...
@@ -1116,7 +1117,8 @@ static void MONTHCAL_PaintLeadTrailMonths(const MONTHCAL_INFO *infoPtr, HDC hdc,
static
void
MONTHCAL_PaintCalendar
(
const
MONTHCAL_INFO
*
infoPtr
,
HDC
hdc
,
const
PAINTSTRUCT
*
ps
,
INT
calIdx
)
{
const
SYSTEMTIME
*
date
=
&
infoPtr
->
calendars
[
calIdx
].
month
;
INT
i
,
j
,
length
;
INT
i
,
j
;
UINT
length
;
RECT
r
,
fill_bk_rect
;
SYSTEMTIME
st
;
WCHAR
buf
[
80
];
...
...
dlls/comctl32/rebar.c
View file @
23fde785
...
...
@@ -1124,7 +1124,7 @@ REBAR_MoveChildWindows (const REBAR_INFO *infoPtr, UINT start, UINT endplus)
* or infoPtr->uNumBands if none */
static
int
next_visible
(
const
REBAR_INFO
*
infoPtr
,
int
i
)
{
int
n
;
unsigned
int
n
;
for
(
n
=
i
+
1
;
n
<
infoPtr
->
uNumBands
;
n
++
)
if
(
!
HIDDENBAND
(
REBAR_GetBand
(
infoPtr
,
n
)))
break
;
...
...
dlls/comctl32/status.c
View file @
23fde785
...
...
@@ -285,7 +285,6 @@ STATUSBAR_RefreshPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPA
static
LRESULT
STATUSBAR_Refresh
(
STATUS_INFO
*
infoPtr
,
HDC
hdc
)
{
int
i
;
RECT
rect
;
HBRUSH
hbrBk
;
HFONT
hOldFont
;
...
...
@@ -319,6 +318,8 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
if
(
infoPtr
->
simple
)
{
STATUSBAR_RefreshPart
(
infoPtr
,
hdc
,
&
infoPtr
->
part0
,
0
);
}
else
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
infoPtr
->
numParts
;
i
++
)
{
STATUSBAR_RefreshPart
(
infoPtr
,
hdc
,
&
infoPtr
->
parts
[
i
],
i
);
}
...
...
@@ -336,7 +337,8 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
static
int
STATUSBAR_InternalHitTest
(
const
STATUS_INFO
*
infoPtr
,
const
POINT
*
pt
)
{
int
i
;
unsigned
int
i
;
if
(
infoPtr
->
simple
)
return
255
;
...
...
@@ -352,7 +354,7 @@ STATUSBAR_SetPartBounds (STATUS_INFO *infoPtr)
{
STATUSWINDOWPART
*
part
;
RECT
rect
,
*
r
;
int
i
;
UINT
i
;
/* get our window size */
GetClientRect
(
infoPtr
->
Self
,
&
rect
);
...
...
@@ -883,7 +885,7 @@ STATUSBAR_Simple (STATUS_INFO *infoPtr, BOOL simple)
static
LRESULT
STATUSBAR_WMDestroy
(
STATUS_INFO
*
infoPtr
)
{
int
i
;
unsigned
int
i
;
TRACE
(
"
\n
"
);
for
(
i
=
0
;
i
<
infoPtr
->
numParts
;
i
++
)
{
...
...
dlls/comctl32/updown.c
View file @
23fde785
...
...
@@ -1026,10 +1026,10 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
if
(
TRACE_ON
(
updown
))
{
INT
i
;
U
INT
i
;
for
(
i
=
0
;
i
<
wParam
;
i
++
)
TRACE
(
"%
d
: nSec %u nInc %u
\n
"
,
i
,
TRACE
(
"%
u
: nSec %u nInc %u
\n
"
,
i
,
infoPtr
->
AccelVect
[
i
].
nSec
,
infoPtr
->
AccelVect
[
i
].
nInc
);
}
...
...
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