[PATCH 1/5] ddraw: Avoid LPD3DINSTRUCTION.
Henri Verbeet
hverbeet at codeweavers.com
Sun Jan 13 15:08:05 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 1b412f7..5e8e475 100644
--- a/dlls/ddraw/executebuffer.c
+++ b/dlls/ddraw/executebuffer.c
@@ -71,8 +71,9 @@ HRESULT d3d_execute_buffer_execute(struct d3d_execute_buffer *buffer,
if (TRACE_ON(ddraw))
_dump_executedata(&(buffer->data));
- while (1) {
- LPD3DINSTRUCTION current = (LPD3DINSTRUCTION) instr;
+ for (;;)
+ {
+ D3DINSTRUCTION *current = (D3DINSTRUCTION *)instr;
BYTE size;
WORD count;
--
1.7.12.4
More information about the wine-patches
mailing list