http://bugs.winehq.org/show_bug.cgi?id=5668
------- Additional Comments From stefandoesinger@gmx.at 2006-20-08 16:15 ------- Some suggestions:
-> Can you check if This->ddraw->d3ddevice is != NULL in that function? -> Add a NULL check for lpDirect3DDevice3 in IDirect3DMaterialImpl_GetHandle(material.c) return DDERR_INVALIDPARAMS if the device is 0 in any case. I suspect that the app calls SetBackground without initializing a device before. It passes a random material handle because it can't have one without a device.