PWideChar and WideString fix by @Sega-Zero.