Sync __crtGetStringTypeW from Wine.