http://bugs.winehq.org/show_bug.cgi?id=9679
--- Comment #8 from Stefan Dösinger stefandoesinger@gmx.at 2007-11-11 12:11:39 --- Created an attachment (id=9109) --> (http://bugs.winehq.org/attachment.cgi?id=9109) Possible fix
Can you try the attached patch? GetDepthStencil surface returns D3DERR_NOTFOUND when the depth stencil surface is NULL as it is supposed to, but IDirect3DDevice9Impl_GetDepthStencilSurface doesn't forward the NULL propably and returns an uninitialized value. So any unrelated change can break games which use this function.