[d3d9/device.c] IDirect3DDevice9Impl_GetDepthStencilSurface problem

Paul Vriens Paul.Vriens at xs4all.nl
Mon Jan 31 13:39:06 CST 2005


while trying to run a demo-app, I had a 'crash'

I have the following (part of a) trace:

(0x77e3d028)->returning ((nil)) default is stencilbuffer=((nil))
trace:seh:EXC_RtlRaiseException code=c0000005 flags=0 addr=0x499db0cd
trace:seh:EXC_RtlRaiseException  info[0]=00000001
trace:seh:EXC_RtlRaiseException  info[1]=00000004
trace:seh:EXC_RtlRaiseException  eax=00000004 ebx=499e232c ecx=00000000
edx=00000001 esi=77e3d028 edi=77ec8318
trace:seh:EXC_RtlRaiseException  ebp=70ecf5ac esp=70ecf5a0 cs=0073
ds=007b es=007b fs=003b gs=0033 flags=00210202

This is because IDirect3DSurface9Impl_AddRef is called with a NULL
parameter. In d3d8/device.c this is checked in d3d9/device.c it isn't.

The demo-app get's a bit further with this patch/hack, but I don't know
if it's correct (or if it is correct in d3d8).

Comments ?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: d3d9_device.diff
Type: text/x-patch
Size: 790 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050131/955ebb4f/d3d9_device.bin

More information about the wine-devel mailing list