Commit ac7fa167 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

dinput: Return E_OUTOFMEMORY on allocation failure in hid_joystick_create_device().

parent dd5f3b6f
......@@ -2073,6 +2073,7 @@ HRESULT hid_joystick_create_device( struct dinput *dinput, const GUID *guid, IDi
impl->attrs = attrs;
list_init( &impl->effect_list );
hr = E_OUTOFMEMORY;
preparsed = (struct hid_preparsed_data *)impl->preparsed;
size = preparsed->input_caps_count * sizeof(struct object_properties);
if (!(object_properties = calloc( 1, size ))) goto failed;
......
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