Fix MSVC warnings

svn path=/trunk/; revision=65721
This commit is contained in:
Timo Kreuzer 2014-12-18 08:11:25 +00:00
parent 2768e3abbd
commit 4fa10c7ef9
4 changed files with 28 additions and 28 deletions

View file

@ -31,8 +31,8 @@ typedef struct tagACON
USHORT atomModName;
USHORT rt;
ULONG CURSORF_flags;
INT cpcur;
INT cicur;
UINT cpcur;
UINT cicur;
PCURICON_OBJECT * aspcur;
DWORD * aicur;
INT * ajifRate;

View file

@ -128,8 +128,8 @@ UserDrawWindowFrame(HDC hdc,
HBRUSH hbrush = NtGdiSelectBrush( hdc, gpsi->hbrGray );
NtGdiPatBlt( hdc, rect->left, rect->top, rect->right - rect->left - width, height, PATINVERT );
NtGdiPatBlt( hdc, rect->left, rect->top + height, width, rect->bottom - rect->top - height, PATINVERT );
NtGdiPatBlt( hdc, rect->left + width, rect->bottom - 1, rect->right - rect->left - width, -height, PATINVERT );
NtGdiPatBlt( hdc, rect->right - 1, rect->top, -width, rect->bottom - rect->top - height, PATINVERT );
NtGdiPatBlt( hdc, rect->left + width, rect->bottom - 1, rect->right - rect->left - width, -(LONG)height, PATINVERT );
NtGdiPatBlt( hdc, rect->right - 1, rect->top, -(LONG)width, rect->bottom - rect->top - height, PATINVERT );
NtGdiSelectBrush( hdc, hbrush );
}

View file

@ -2198,7 +2198,7 @@ NtUserGetMenuBarInfo(
if (!Menu)
RETURN(FALSE);
if (idItem < 0 || idItem > Menu->cItems)
if ((idItem < 0) || ((ULONG)idItem > Menu->cItems))
RETURN(FALSE);
RECTL_vSetEmptyRect(&kmbi.rcBar);
@ -2427,7 +2427,7 @@ NtUserMenuItemFromPoint(
PMENU Menu;
PWND Window = NULL;
PITEM mi;
int i;
ULONG i;
DECLARE_RETURN(int);
TRACE("Enter NtUserMenuItemFromPoint\n");

View file

@ -16,7 +16,7 @@ IntGetProp(PWND Window, ATOM Atom)
{
PLIST_ENTRY ListEntry;
PPROPERTY Property;
int i;
UINT i;
ListEntry = Window->PropListHead.Flink;