diff --git a/reactos/win32ss/gdi/eng/gradient.c b/reactos/win32ss/gdi/eng/gradient.c index 5dd9008ab24..784f21600cb 100644 --- a/reactos/win32ss/gdi/eng/gradient.c +++ b/reactos/win32ss/gdi/eng/gradient.c @@ -487,13 +487,11 @@ EngGradientFill( ULONG i; BOOL ret = FALSE; - if (!pco) + /* Check for NULL clip object */ + if (pco == NULL) { - pco = IntEngCreateClipRegion(0, 0, prclExtents); - if (!pco) - { - return FALSE; - } + /* Use the trivial one instead */ + pco = &gxcoTrivial.ClipObj; } switch(ulMode)