This commit is contained in:
Richard Holland
2023-10-27 08:44:05 +00:00
committed by RichardAH
parent c54377eb7a
commit 81b0bf8041

View File

@@ -5599,6 +5599,11 @@ DEFINE_HOOK_FUNCTION(
if (free_count < needed_count)
return NO_FREE_SLOTS;
// if they supply the same slot number for both (other than 0)
// they will produce a collision
if (needed_count == 0 && slot_into_tx == slot_into_meta)
return INVALID_ARGUMENT;
if (slot_into_tx == 0)
{
if (no_free_slots(hookCtx))