Tre Kronor tvingas spela kvartsfinalen i Riga.