=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: ddraw/tests: Use the variable instead of the type in sizeof().
Alexandre Julliard
julliard at winehq.org
Mon Sep 26 16:15:11 CDT 2011
Module: wine
Branch: master
Commit: 35f2e91fcd0b529924203febf7c6ed8df6bf4247
URL: http://source.winehq.org/git/wine.git/?a=commit;h=35f2e91fcd0b529924203febf7c6ed8df6bf4247
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Thu Sep 22 13:40:01 2011 +0200
ddraw/tests: Use the variable instead of the type in sizeof().
---
dlls/ddraw/tests/visual.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c
index e0ba7bd..2fdfe73 100644
--- a/dlls/ddraw/tests/visual.c
+++ b/dlls/ddraw/tests/visual.c
@@ -1485,8 +1485,8 @@ static void D3D1_TextureMapBlendTest(void)
trace("IDirect3DExecuteBuffer_Unlock failed with %08x\n", hr);
}
- memset(&exdata, 0, sizeof(D3DEXECUTEDATA));
- exdata.dwSize = sizeof(D3DEXECUTEDATA);
+ memset(&exdata, 0, sizeof(exdata));
+ exdata.dwSize = sizeof(exdata);
exdata.dwVertexCount = 8;
exdata.dwInstructionOffset = sizeof(test1_quads);
exdata.dwInstructionLength = exe_length;
@@ -1606,8 +1606,8 @@ static void D3D1_TextureMapBlendTest(void)
trace("IDirect3DExecuteBuffer_Unlock failed with %08x\n", hr);
}
- memset(&exdata, 0, sizeof(D3DEXECUTEDATA));
- exdata.dwSize = sizeof(D3DEXECUTEDATA);
+ memset(&exdata, 0, sizeof(exdata));
+ exdata.dwSize = sizeof(exdata);
exdata.dwVertexCount = 8;
exdata.dwInstructionOffset = sizeof(test1_quads);
exdata.dwInstructionLength = exe_length;
@@ -1728,8 +1728,8 @@ static void D3D1_TextureMapBlendTest(void)
trace("IDirect3DExecuteBuffer_Unlock failed with %08x\n", hr);
}
- memset(&exdata, 0, sizeof(D3DEXECUTEDATA));
- exdata.dwSize = sizeof(D3DEXECUTEDATA);
+ memset(&exdata, 0, sizeof(exdata));
+ exdata.dwSize = sizeof(exdata);
exdata.dwVertexCount = 8;
exdata.dwInstructionOffset = sizeof(test2_quads);
exdata.dwInstructionLength = exe_length;
@@ -1854,8 +1854,8 @@ static void D3D1_TextureMapBlendTest(void)
trace("IDirect3DExecuteBuffer_Unlock failed with %08x\n", hr);
}
- memset(&exdata, 0, sizeof(D3DEXECUTEDATA));
- exdata.dwSize = sizeof(D3DEXECUTEDATA);
+ memset(&exdata, 0, sizeof(exdata));
+ exdata.dwSize = sizeof(exdata);
exdata.dwVertexCount = 8;
exdata.dwInstructionOffset = sizeof(test1_quads);
exdata.dwInstructionLength = exe_length;
@@ -1992,8 +1992,8 @@ static void D3D1_TextureMapBlendTest(void)
trace("IDirect3DExecuteBuffer_Unlock failed with %08x\n", hr);
}
- memset(&exdata, 0, sizeof(D3DEXECUTEDATA));
- exdata.dwSize = sizeof(D3DEXECUTEDATA);
+ memset(&exdata, 0, sizeof(exdata));
+ exdata.dwSize = sizeof(exdata);
exdata.dwVertexCount = 8;
exdata.dwInstructionOffset = sizeof(test1_quads);
exdata.dwInstructionLength = exe_length;
More information about the wine-cvs
mailing list