mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +00:00
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:
parent
53177f48f4
commit
2d24e47d1d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue