DWORD is unsigned, so cast to signed type before checking for < 0. Fixes one gdi32 winetest.

svn path=/trunk/; revision=37002
This commit is contained in:
Gregor Schneider 2008-10-26 21:06:11 +00:00
parent 53177f48f4
commit 2d24e47d1d

View file

@ -293,7 +293,7 @@ NtGdiExtCreatePen(
DWORD* pSafeStyle = NULL;
HPEN hPen;
if (dwStyleCount < 0) return 0;
if ((int)dwStyleCount < 0) return 0;
if (dwStyleCount > 16)
{
SetLastWin32Error(ERROR_INVALID_PARAMETER);