Clean up WinMain.

Minor cleaning that accumulated while working on the password additions.