Module: wine Branch: master Commit: d711728a7e55daacbaabdebec60bbb88c8d4e580 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d711728a7e55daacbaabdebec6...
Author: Louis Lenders xerox_xerox2000@yahoo.co.uk Date: Mon May 7 21:03:16 2007 +0100
gdi32: Add check for null pointer in SetDIBitsToDevice.
---
dlls/gdi32/dib.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c index 7b9ef6d..86e1308 100644 --- a/dlls/gdi32/dib.c +++ b/dlls/gdi32/dib.c @@ -364,6 +364,8 @@ INT WINAPI SetDIBitsToDevice(HDC hdc, INT xDest, INT yDest, DWORD cx, INT ret; DC *dc;
+ if (!bits) return 0; + if (!(dc = DC_GetDCUpdate( hdc ))) return 0;
if(dc->funcs->pSetDIBitsToDevice)