From d1fd748e271dadf3257e4a9aacc0065d0c546752 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 7 Jun 2008 10:15:38 +0000 Subject: [PATCH] fix one winetest for Bitmap and add note why some alpha blend test fails. svn path=/trunk/; revision=33884 --- reactos/subsystems/win32/win32k/eng/bitblt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/subsystems/win32/win32k/eng/bitblt.c b/reactos/subsystems/win32/win32k/eng/bitblt.c index 0623c604d3b..0b01ad596e4 100644 --- a/reactos/subsystems/win32/win32k/eng/bitblt.c +++ b/reactos/subsystems/win32/win32k/eng/bitblt.c @@ -1081,10 +1081,13 @@ EngAlphaBlend(IN SURFOBJ *Dest, /* Validate input */ + /* FIXME when WindowOrg.x or .y are negitve this check are not vaild, + * we need convert the inputRect to the windows org and do it right */ InputRect = *SourceRect; if ( (InputRect.top < 0) || (InputRect.bottom < 0) || (InputRect.left < 0) || (InputRect.right < 0) ) { + SetLastWin32Error(ERROR_INVALID_PARAMETER); return FALSE; }