diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c index 7b9ef6d9bf9..86e13080e13 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)