Alex Henrie : regedit: Use the wcsdup function instead or reimplementing it.