From 2d24e47d1dc1d8dd059c6ce087628984adb6de39 Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Sun, 26 Oct 2008 21:06:11 +0000 Subject: [PATCH] DWORD is unsigned, so cast to signed type before checking for < 0. Fixes one gdi32 winetest. svn path=/trunk/; revision=37002 --- reactos/subsystems/win32/win32k/objects/pen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/pen.c b/reactos/subsystems/win32/win32k/objects/pen.c index 9a8b63e3be0..b380331a44d 100644 --- a/reactos/subsystems/win32/win32k/objects/pen.c +++ b/reactos/subsystems/win32/win32k/objects/pen.c @@ -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);