bitblt.c - GdiAlphaBlend : Check for NULL Pointer

Paul Vriens paul.vriens.wine at gmail.com
Thu Sep 10 16:02:36 CDT 2009


On 09/10/2009 10:56 PM, Markus Stockhausen wrote:
> Hi,
>
> http://bugs.winehq.org/show_bug.cgi?id=18041 reveals a bug where
> GdiAlphaBlend will crash in Teamviewer application when a NULL pointer
> is handed over. The attached check fixes that behaviour.
>
> Tanks in advance.
>
> Markus
>
>
>
> ------------------------------------------------------------------------
>
>
No comments on the validity of the patch but you should add a test for 
this to the conformance tests.

If you are bailing out when dcSrc == NULL then the other checks in that 
function for dcSrc are not necessary anymore.

-- 
Cheers,

Paul.



More information about the wine-devel mailing list