Fixed allocation size of g_EventHooks.