http://bugs.winehq.org/show_bug.cgi?id=7965
--- Comment #30 from Stefan Dösinger stefandoesinger@gmx.at 2007-11-27 17:24:22 --- Either we're returning the wrong error value, or the light structures get corrupted, or we're not cleaning up properly after the error. I suspect it is one of the first.
I'll attach a debug patch, can you apply it and record another +d3d trace? It dumps a bit more information about the light states.