Gui: Replace sscanf with ToULong

Let's see if I can't get this right for once.