d3dx9_36/tests: Fix sizeof to be more portable (coverity)
André Hentschel
nerv at dawncrow.de
Tue Oct 23 19:05:58 CDT 2012
CID 701614
---
dlls/d3dx9_36/tests/mesh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 563c759..ca05d66 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -10167,7 +10167,7 @@ static void test_optimize_faces(void)
DWORD j;
DWORD *face_remap;
face_remap = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
- tc[i].num_faces*sizeof(face_remap));
+ tc[i].num_faces*sizeof(DWORD*));
hr = D3DXOptimizeFaces(tc[i].indices, tc[i].num_faces,
tc[i].num_vertices, tc[i].indices_are_32bit,
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list