Index: lib/Support/Windows/Path.inc =================================================================== --- lib/Support/Windows/Path.inc +++ lib/Support/Windows/Path.inc @@ -418,3 +418,3 @@ RenameInfo.RootDirectory = 0; - RenameInfo.FileNameLength = ToWide.size(); + RenameInfo.FileNameLength = (ToWide.size() * sizeof(wchar_t)); std::copy(ToWide.begin(), ToWide.end(), &RenameInfo.FileName[0]);