wstrdup cannot fail, therefore no need to check for NULL.