From 3159c6f62f8a7ba0ba5817474ff92c67b8eeba57 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 4 Mar 2012 11:43:08 +0000 Subject: [PATCH] [WIN32K] Fix build svn path=/trunk/; revision=55994 --- reactos/subsystems/win32/win32k/ntuser/class.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/class.c b/reactos/subsystems/win32/win32k/ntuser/class.c index 623a18f9bdd..1474e0c6027 100644 --- a/reactos/subsystems/win32/win32k/ntuser/class.c +++ b/reactos/subsystems/win32/win32k/ntuser/class.c @@ -1634,8 +1634,8 @@ UserSetClassLongPtr(IN PCLS Class, TRACE("SetClassLong(%d, %x)\n", Index, NewLong); - if ((Index + (INT)sizeof(ULONG_PTR)) < Index || - (Index + (INT)sizeof(ULONG_PTR)) > Class->cbclsExtra) + if (((ULONG)Index + sizeof(ULONG_PTR)) < (ULONG)Index || + ((ULONG)Index + sizeof(ULONG_PTR)) > (ULONG)Class->cbclsExtra) { EngSetLastError(ERROR_INVALID_PARAMETER); return 0;