Michael Stefaniuc : ddraw/tests: Simplify a pointer increment.

Alexandre Julliard julliard at winehq.org
Sun Jan 4 09:09:02 CST 2009


Module: wine
Branch: master
Commit: 566a133a827016799bc47896c2a29c84d39e7008
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=566a133a827016799bc47896c2a29c84d39e7008

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Jan  4 01:46:26 2009 +0100

ddraw/tests: Simplify a pointer increment.

---

 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;




More information about the wine-cvs mailing list