Author: gschneider Date: Sun Oct 26 16:06:11 2008 New Revision: 37002
URL: http://svn.reactos.org/svn/reactos?rev=37002&view=rev Log: DWORD is unsigned, so cast to signed type before checking for < 0. Fixes one gdi32 winetest.
Modified: trunk/reactos/subsystems/win32/win32k/objects/pen.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/pen.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/pen.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/pen.c [iso-8859-1] Sun Oct 26 16:06:11 2008 @@ -293,7 +293,7 @@ DWORD* pSafeStyle = NULL; HPEN hPen;
- if (dwStyleCount < 0) return 0; + if ((int)dwStyleCount < 0) return 0; if (dwStyleCount > 16) { SetLastWin32Error(ERROR_INVALID_PARAMETER);