Henri Verbeet : ddraw: Avoid LPD3DINSTRUCTION.
Alexandre Julliard
julliard at winehq.org
Mon Jan 14 15:55:49 CST 2013
Module: wine
Branch: master
Commit: cc60cc6abb6d662745d211bff444f9cc38bc4737
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cc60cc6abb6d662745d211bff444f9cc38bc4737
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sun Jan 13 22:08:05 2013 +0100
ddraw: Avoid LPD3DINSTRUCTION.
---
dlls/ddraw/executebuffer.c | 5 +++--
1 files 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;
More information about the wine-cvs
mailing list