[PATCH 06/10] gdi32: Factor out emf_eof helper.