[ros-diffs] [gschneider] 37002: DWORD is unsigned, so cast to signed type before checking for < 0. Fixes one gdi32 winetest.

gschneider at svn.reactos.org gschneider at svn.reactos.org
Sun Oct 26 22:06:12 CET 2008


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/objects/pen.c?rev=37002&r1=37001&r2=37002&view=diff
==============================================================================
--- 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);



More information about the Ros-diffs mailing list