Fix filename regression on Windows 7
@@ -6115,7 +6115,7 @@ PPH_STRING PhGetFileName(
// If the file name starts with "\Windows", prepend the system drive.
if (PhStartsWithString2(newFileName, L"\\Windows", TRUE))
{
- newFileName = PhCreateStringEx(NULL, (FileName->Length + 2) * sizeof(WCHAR));
+ newFileName = PhCreateStringEx(NULL, FileName->Length + 2 * sizeof(WCHAR));
newFileName->Buffer[0] = USER_SHARED_DATA->NtSystemRoot[0];
newFileName->Buffer[1] = ':';
memcpy(&newFileName->Buffer[2], FileName->Buffer, FileName->Length);
