Am Samstag 12 Mai 2007 11:39 schrieb Marcus Meissner:
Hi,
Not sure if we should perhaps not do the ICOM CAST magic on a failing CreateSurface call here.
But initializing pSurface to NULL also helps.
The ICOM_CAST thing should set the output to NULL of the surface returned by ddraw7_CreateSurface is NULL, but ddraw7 doesn't always set it to NULL. I wanted to write a test for this because some calls leave the output pointer untouched if they fail and some set it to NULL. AJ also says we should replace transgamings com casting macros with inline functions.