[PATCH 1/6] riched20: Move handling of EM_SETCHARFORMAT to a helper function.