[ddraw] fix bug 3487: don't crash if pDDSD is NULL
Vitaliy Margolen
wine-devel at kievinfo.com
Thu Oct 6 02:38:54 CDT 2005
Thursday, October 6, 2005, 1:31:09 AM, Raphael wrote:
> Hi,
> Changelog:
> - fix 3487: don't crash if pDDSD is NULL on DirectDrawSurface::Lock
> Regards,
> Raphael
> + if (NULL == lpddsd) {
> + DPRINTF("(null)\n");
> } else {
Please don't use DPFINTF
> + if (lpddsd->>dwSize >= sizeof(DDSURFACEDESC2)) {
> + DDRAW_dump_members(lpddsd->dwFlags, lpddsd, members_caps2, 1);
> + } else {
And follow the same indentation style (4 spaces):
Vitaliy Margolen
More information about the wine-devel
mailing list