Avoid crash by passing pointer to RegSetValueEx.