comctl32: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
a377563b00
commit
23fde785ee
|
@ -2235,7 +2235,7 @@ HIMAGELIST WINAPI ImageList_Read (LPSTREAM pstm)
|
||||||
void *image_bits, *mask_bits = NULL;
|
void *image_bits, *mask_bits = NULL;
|
||||||
ILHEAD ilHead;
|
ILHEAD ilHead;
|
||||||
HIMAGELIST himl;
|
HIMAGELIST himl;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
TRACE("%p\n", pstm);
|
TRACE("%p\n", pstm);
|
||||||
|
|
||||||
|
|
|
@ -1076,7 +1076,8 @@ static void MONTHCAL_PaintFocusAndCircle(const MONTHCAL_INFO *infoPtr, HDC hdc,
|
||||||
/* months before first calendar month and after last calendar month */
|
/* months before first calendar month and after last calendar month */
|
||||||
static void MONTHCAL_PaintLeadTrailMonths(const MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT *ps)
|
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;
|
SYSTEMTIME st_max, st;
|
||||||
|
|
||||||
if (infoPtr->dwStyle & MCS_NOTRAILINGDATES) return;
|
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)
|
static void MONTHCAL_PaintCalendar(const MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT *ps, INT calIdx)
|
||||||
{
|
{
|
||||||
const SYSTEMTIME *date = &infoPtr->calendars[calIdx].month;
|
const SYSTEMTIME *date = &infoPtr->calendars[calIdx].month;
|
||||||
INT i, j, length;
|
INT i, j;
|
||||||
|
UINT length;
|
||||||
RECT r, fill_bk_rect;
|
RECT r, fill_bk_rect;
|
||||||
SYSTEMTIME st;
|
SYSTEMTIME st;
|
||||||
WCHAR buf[80];
|
WCHAR buf[80];
|
||||||
|
|
|
@ -1124,7 +1124,7 @@ REBAR_MoveChildWindows (const REBAR_INFO *infoPtr, UINT start, UINT endplus)
|
||||||
* or infoPtr->uNumBands if none */
|
* or infoPtr->uNumBands if none */
|
||||||
static int next_visible(const REBAR_INFO *infoPtr, int i)
|
static int next_visible(const REBAR_INFO *infoPtr, int i)
|
||||||
{
|
{
|
||||||
int n;
|
unsigned int n;
|
||||||
for (n = i + 1; n < infoPtr->uNumBands; n++)
|
for (n = i + 1; n < infoPtr->uNumBands; n++)
|
||||||
if (!HIDDENBAND(REBAR_GetBand(infoPtr, n)))
|
if (!HIDDENBAND(REBAR_GetBand(infoPtr, n)))
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -285,7 +285,6 @@ STATUSBAR_RefreshPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPA
|
||||||
static LRESULT
|
static LRESULT
|
||||||
STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
|
STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
RECT rect;
|
RECT rect;
|
||||||
HBRUSH hbrBk;
|
HBRUSH hbrBk;
|
||||||
HFONT hOldFont;
|
HFONT hOldFont;
|
||||||
|
@ -319,6 +318,8 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
|
||||||
if (infoPtr->simple) {
|
if (infoPtr->simple) {
|
||||||
STATUSBAR_RefreshPart (infoPtr, hdc, &infoPtr->part0, 0);
|
STATUSBAR_RefreshPart (infoPtr, hdc, &infoPtr->part0, 0);
|
||||||
} else {
|
} else {
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < infoPtr->numParts; i++) {
|
for (i = 0; i < infoPtr->numParts; i++) {
|
||||||
STATUSBAR_RefreshPart (infoPtr, hdc, &infoPtr->parts[i], i);
|
STATUSBAR_RefreshPart (infoPtr, hdc, &infoPtr->parts[i], i);
|
||||||
}
|
}
|
||||||
|
@ -336,7 +337,8 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
|
||||||
static int
|
static int
|
||||||
STATUSBAR_InternalHitTest(const STATUS_INFO *infoPtr, const POINT *pt)
|
STATUSBAR_InternalHitTest(const STATUS_INFO *infoPtr, const POINT *pt)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (infoPtr->simple)
|
if (infoPtr->simple)
|
||||||
return 255;
|
return 255;
|
||||||
|
|
||||||
|
@ -352,7 +354,7 @@ STATUSBAR_SetPartBounds (STATUS_INFO *infoPtr)
|
||||||
{
|
{
|
||||||
STATUSWINDOWPART *part;
|
STATUSWINDOWPART *part;
|
||||||
RECT rect, *r;
|
RECT rect, *r;
|
||||||
int i;
|
UINT i;
|
||||||
|
|
||||||
/* get our window size */
|
/* get our window size */
|
||||||
GetClientRect (infoPtr->Self, &rect);
|
GetClientRect (infoPtr->Self, &rect);
|
||||||
|
@ -883,7 +885,7 @@ STATUSBAR_Simple (STATUS_INFO *infoPtr, BOOL simple)
|
||||||
static LRESULT
|
static LRESULT
|
||||||
STATUSBAR_WMDestroy (STATUS_INFO *infoPtr)
|
STATUSBAR_WMDestroy (STATUS_INFO *infoPtr)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
for (i = 0; i < infoPtr->numParts; i++) {
|
for (i = 0; i < infoPtr->numParts; i++) {
|
||||||
|
|
|
@ -1026,10 +1026,10 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
|
||||||
|
|
||||||
if (TRACE_ON(updown))
|
if (TRACE_ON(updown))
|
||||||
{
|
{
|
||||||
INT i;
|
UINT i;
|
||||||
|
|
||||||
for (i = 0; i < wParam; 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);
|
infoPtr->AccelVect[i].nSec, infoPtr->AccelVect[i].nInc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue