Yes, rolling a 19-20 on the dice before adding your bonus is a crit with a long sword. You need to roll a 20 with the quarterstaff.

To confirm a critical, you simply make a second attack roll. If that one hits, you deal critical damage.