Thankfully for them the staircases were on their side and the corridors were wide enough to avoid bumping him into walls. By the time they reached the hospital wing both McGonagall and Snape were there. McGonagall helped get Harry into bed and asked "What happened?"