Add missing __stdcall (which crashes on win32), and clean-up indenting