Make check fails in dlls/ddraw/tests/d3d, because a heap allocate is

fed to wrong size. (sizeof(BOOLEAN) is 1 , but ative_lights is a DWORD
array).
This commit is contained in:
Marcus Meissner 2005-07-03 11:21:32 +00:00 committed by Alexandre Julliard
parent a167fe2854
commit 1e3dda640c

View File

@ -4094,7 +4094,7 @@ d3ddevice_create(IDirect3DDeviceImpl **obj, IDirectDrawImpl *d3d, IDirectDrawSur
object->max_active_lights = opengl_device_caps.dwMaxActiveLights;
object->light_parameters = NULL;
object->active_lights = HeapAlloc(GetProcessHeap(), 0,
object->max_active_lights * sizeof(BOOLEAN));
object->max_active_lights * sizeof(object->active_lights[0]));
/* Fill the active light array with ~0, which is used to indicate an
invalid light index. We don't use 0, because it's a valid light index. */
for (light=0; light < object->max_active_lights; light++)