return the status from EndDialog instead of a constant TRUE. This is mostly about keeping the code "honest", it doesn't change anything in reality. Also fix up some code-style.