=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: d3dx9_36/tests: Fix sizeof to be more portable (coverity).

Alexandre Julliard julliard at winehq.org
Wed Oct 24 13:39:41 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Oct 24 03:31:55 2012 +0200

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

---

 dlls/d3dx9_36/tests/mesh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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,




More information about the wine-cvs mailing list