gdi32dll: bitblt.c. Fix copying from uninitialized memory

Dmitry Timoshkov dmitry at
Wed Feb 20 09:13:53 CST 2008

"Alexander Demakin" <avd at> wrote:

> This patch adds check of return value of GetDIBits in BitBlt.c. If a error 
> occurs, GetDIBits returns 0 and bits variable points to  uninitialized data. 
> It always occurs when calling BitBlt for printer context due to 
> implementation of PSDRV_SelectBitmap().
> Changelog:
> gdi32.dll Fix copying from uninitialized memory.

You are mixing tabs and spaces in the patch, otherwise tha patch looks
good to me.


More information about the wine-devel mailing list