ddraw/tests: Simplify a pointer increment.

Michael Stefaniuc mstefani at redhat.de
Sat Jan 3 18:46:26 CST 2009


instr is a pointer to a D3DINSTRUCTION.
---
 dlls/ddraw/tests/d3d.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index 94a0dfe..8a3dfd0 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -1118,7 +1118,7 @@ static void Direct3D1Test(void)
     instr->bOpcode = D3DOP_TRIANGLE;
     instr->bSize = sizeof(D3DOP_TRIANGLE);
     instr->wCount = 0;
-    instr = ((D3DINSTRUCTION*)(instr))+1;
+    instr++;
     instr->bOpcode = D3DOP_EXIT;
     instr->bSize = 0;
     instr->wCount = 0;
-- 
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090104/4fa35ed4/attachment.pgp 


More information about the wine-patches mailing list