wined3d: Avoid crashing when ProcessVertices is called with NULL vertex declaration

Paul Chitescu pchitescu at
Mon Sep 4 09:16:45 CDT 2006

Changelog: Avoid a segfault in IWineD3DDeviceImpl_ProcessVertices by checking 
if SrcImpl (parameter pVertexDecl) is NULL.

The function is called from dlls/d3d8/device.c 
IDirect3DDevice8Impl_ProcessVertices with an explicit NULL as vertex 
declaration parameter.

Crash was observed in Age of Mythology Trial.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wined3d_srcbuff_crash.patch
Type: text/x-diff
Size: 625 bytes
Desc: not available
Url :

More information about the wine-patches mailing list