Changelog: Fix crash in GetAvailableVidMem function when TRACE is activated -- Lionel Ulmer - http://www.bbrox.org/
--- /home/ulmer/Wine/wine_base//dlls/ddraw/ddraw/main.c 2002-12-22 15:09:19.000000000 +0100 +++ /home/ulmer/Wine/wine_work//dlls/ddraw/ddraw/main.c 2002-12-24 11:57:57.000000000 +0100 @@ -1120,7 +1120,7 @@ TRACE("(%p)->(%p,%p,%p)\n", This,ddscaps,total,free); if (TRACE_ON(ddraw)) { - TRACE(" Asking for memory of type : \n"); + TRACE(" Asking for memory of type : "); DDRAW_dump_DDSCAPS2(ddscaps); DPRINTF("\n"); } @@ -1128,7 +1128,9 @@ if (total) *total= This->total_vidmem; if (free) *free = This->available_vidmem; - TRACE(" returning (total) %ld / (free) %ld\n", *total, *free); + TRACE(" returning (total) %ld / (free) %ld\n", + total != NULL ? *total : 0, + free != NULL ? *free : 0); return DD_OK; }