gdi32: Sign-compare warnings fix.

This commit is contained in:
Andrew Talbot 2008-10-02 22:18:38 +01:00 committed by Alexandre Julliard
parent 53160b600f
commit 44be6c7cbf
2 changed files with 3 additions and 4 deletions

View File

@ -335,7 +335,7 @@ LONG WINAPI GetBitmapBits(
DIBSECTION *dib = bmp->dib;
const char *src = dib->dsBm.bmBits;
INT width_bytes = BITMAP_GetWidthBytes(dib->dsBm.bmWidth, dib->dsBm.bmBitsPixel);
DWORD max = width_bytes * bmp->bitmap.bmHeight;
LONG max = width_bytes * bmp->bitmap.bmHeight;
if (!bits)
{
@ -451,7 +451,7 @@ LONG WINAPI SetBitmapBits(
{
DIBSECTION *dib = bmp->dib;
char *dest = dib->dsBm.bmBits;
DWORD max = dib->dsBm.bmWidthBytes * dib->dsBm.bmHeight;
LONG max = dib->dsBm.bmWidthBytes * dib->dsBm.bmHeight;
if (count > max) count = max;
ret = count;

View File

@ -1193,8 +1193,7 @@ HBITMAP16 WINAPI CreateDIBSection16 (HDC16 hdc, const BITMAPINFO *bmi, UINT16 us
static void DIB_CopyColorTable( DC *dc, BITMAPOBJ *bmp, WORD coloruse, const BITMAPINFO *info )
{
RGBQUAD *colorTable;
unsigned int colors;
int i;
unsigned int colors, i;
BOOL core_info = info->bmiHeader.biSize == sizeof(BITMAPCOREHEADER);
if (core_info)