d3dx9_36/tests: Fix sizeof to be more portable (coverity) (try 2)

André Hentschel nerv at dawncrow.de
Tue Oct 23 20:31:55 CDT 2012


---
 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..97d7e2d 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(*face_remap));
 
         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