http://bugs.winehq.org/show_bug.cgi?id=7485
------- Additional Comments From yoyo@wine.ksp.sk 2007-04-04 15:43 ------- I played with it a bit and this seems to be the problem (wined3d/drawprim.c lines 166 and 176): for (i = 0; i < vertexDeclaration->declarationWNumElements - 1; ++i)
primitiveDeclarationConvertToStridedData is sometimes called with declarationWNumElements==0 , which is defined as UINT (unsigned) so the for-cycle is executed...
Casting it to int: for (i = 0; i < (int)vertexDeclaration->declarationWNumElements - 1; ++i)
solves that problem, but wine then crashes on something else...