Quantum-corrected black hole thermodynamics to all orders in the Planck length