Scaling of the critical current in the quantum Hall effect: A probe of current distribution