From 8f2aedbc45717c3f8813afdbe302bf8b1c983ce7 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 29 Sep 2013 14:33:09 +0000 Subject: [PATCH] [WIN32K] * Improve sanity checking in IntEngAlphaBlend(). Brought to you by Huw Campbell (huw .dot. campbell @at@ gmail .dot. com) CORE-7458 #resolve #comment Committed in r60448. Thanks ;) svn path=/trunk/; revision=60448 --- reactos/win32ss/gdi/eng/alphablend.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reactos/win32ss/gdi/eng/alphablend.c b/reactos/win32ss/gdi/eng/alphablend.c index 5b4530bc63c..be039ad0bbd 100644 --- a/reactos/win32ss/gdi/eng/alphablend.c +++ b/reactos/win32ss/gdi/eng/alphablend.c @@ -118,7 +118,7 @@ EngAlphaBlend( OutputRect.top += Translate.y; OutputRect.bottom += Translate.y; - ASSERT(InputRect.left < InputRect.right && InputRect.top < InputRect.bottom); + ASSERT(InputRect.left <= InputRect.right && InputRect.top <= InputRect.bottom); Ret = FALSE; ClippingType = (ClipRegion == NULL) ? DC_TRIVIAL : ClipRegion->iDComplexity; @@ -141,7 +141,6 @@ EngAlphaBlend( Rect.right = InputRect.right + (CombinedRect.right - OutputRect.right) * (InputRect.right - InputRect.left) / (OutputRect.right - OutputRect.left); Rect.top = InputRect.top + (CombinedRect.top - OutputRect.top) * (InputRect.bottom - InputRect.top) / (OutputRect.bottom - OutputRect.top); Rect.bottom = InputRect.bottom + (CombinedRect.bottom - OutputRect.bottom) * (InputRect.bottom - InputRect.top) / (OutputRect.bottom - OutputRect.top); - ASSERT(InputRect.left < InputRect.right && InputRect.top < InputRect.bottom); /* Aplha blend one rect */ Ret = DibFunctionsForBitmapFormat[OutputObj->iBitmapFormat].DIB_AlphaBlend( @@ -170,7 +169,6 @@ EngAlphaBlend( Rect.right = InputRect.right + (CombinedRect.right - OutputRect.right) * (InputRect.right - InputRect.left) / (OutputRect.right - OutputRect.left); Rect.top = InputRect.top + (CombinedRect.top - OutputRect.top) * (InputRect.bottom - InputRect.top) / (OutputRect.bottom - OutputRect.top); Rect.bottom = InputRect.bottom + (CombinedRect.bottom - OutputRect.bottom) * (InputRect.bottom - InputRect.top) / (OutputRect.bottom - OutputRect.top); - ASSERT(InputRect.left < InputRect.right && InputRect.top < InputRect.bottom); /* Alpha blend one rect */ Ret = DibFunctionsForBitmapFormat[OutputObj->iBitmapFormat].DIB_AlphaBlend(