ddraw/tests: Use the variable instead of the type in sizeof().

This commit is contained in:
Stefan Dösinger 2011-09-22 13:40:01 +02:00 committed by Alexandre Julliard
parent 6e0d056e9a
commit 35f2e91fcd
1 changed files with 10 additions and 10 deletions

View File

@ -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;