Commit 47201091 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent c41bdf98
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment