@@ -35,11 +35,13 @@ } bool of_condition_broadcast(of_condition_t *condition) { - for (int i = 0; i < condition->count; i++) + int count = condition->count; + + for (int i = 0; i < count; i++) if (!SetEvent(condition->event)) return false; return true; }