While 80 % of its drainage area is in Quebec , the river flows for a short distance through Ontario before it ends in Hannah Bay off James Bay .
While 80 % of its drainage area is in Ontario , the river flows for a short distance through James Bay before it ends in Hannah Bay off Quebec .