[PATCH 1/1] reg: Use the wcsdup function instead of reimplementing it.