Commit c8681f88 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

wined3d: Fix use of memset (Coccinelle).

parent 1b27af16
...@@ -1100,7 +1100,7 @@ HRESULT tesselate_rectpatch(IWineD3DDeviceImpl *This, ...@@ -1100,7 +1100,7 @@ HRESULT tesselate_rectpatch(IWineD3DDeviceImpl *This,
if(patch->has_texcoords) { if(patch->has_texcoords) {
vtxStride += 4 * sizeof(float); vtxStride += 4 * sizeof(float);
} }
memset(&patch->strided, 0, sizeof(&patch->strided)); memset(&patch->strided, 0, sizeof(patch->strided));
patch->strided.position.format = WINED3DFMT_R32G32B32_FLOAT; patch->strided.position.format = WINED3DFMT_R32G32B32_FLOAT;
patch->strided.position.lpData = (BYTE *) patch->mem; patch->strided.position.lpData = (BYTE *) patch->mem;
patch->strided.position.dwStride = vtxStride; patch->strided.position.dwStride = vtxStride;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment