Paul Gofman : d3dx9: Factor out regstore_set_modified_reg() function.