bitblt.c - GdiAlphaBlend : Check for NULL Pointer

Nikolay Sivov bunglehead at gmail.com
Thu Sep 10 16:17:03 CDT 2009


Roderick Colenbrander wrote:
> Recently Nikolay Sivov wrote some tests for this call. His tests
> didn't make it in yet but I think those should enter and then based on
> those results changes should be made.
>
> Roderick
>
> On Thu, Sep 10, 2009 at 10:56 PM, Markus Stockhausen
> <markus.stockhausen at collogia.de> 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
>>     
This is what Roderick is talking about:

http://www.winehq.org/pipermail/wine-patches/2009-September/078293.html

I don't think it will be committed, it should be included with a fix.

You may take this part and resubmit:
---
+ SetLastError(0xdeadbeef);
+ expect_eq(pGdiAlphaBlend(hdcDst, 0, 0, 20, 20, NULL, 0, 0, 20, 20, 
blend), FALSE, BOOL, "%d");
+ expect_eq(GetLastError(), 0xdeadbeef, int, "%d");
---





More information about the wine-devel mailing list