Refactor win32 native dialog-mainloop update code

Just cleaning up last commit.