[PATCH 1/5] ddraw: Avoid LPD3DTRIANGLE.

Henri Verbeet hverbeet at codeweavers.com
Wed Jan 16 01:51:45 CST 2013


---
 dlls/ddraw/executebuffer.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c
index 1673cac..8646c54 100644
--- a/dlls/ddraw/executebuffer.c
+++ b/dlls/ddraw/executebuffer.c
@@ -104,8 +104,9 @@ HRESULT d3d_execute_buffer_execute(struct d3d_execute_buffer *buffer,
                     buffer->indices = HeapAlloc(GetProcessHeap(), 0, sizeof(*buffer->indices) * buffer->nb_indices);
                 }
 
-		for (i = 0; i < count; i++) {
-                    LPD3DTRIANGLE ci = (LPD3DTRIANGLE) instr;
+                for (i = 0; i < count; ++i)
+                {
+                    D3DTRIANGLE *ci = (D3DTRIANGLE *)instr;
 		    TRACE("  v1: %d  v2: %d  v3: %d\n",ci->u1.v1, ci->u2.v2, ci->u3.v3);
 		    TRACE("  Flags : ");
                     if (TRACE_ON(ddraw))
-- 
1.7.12.4




More information about the wine-patches mailing list