[KERNEL32]

- Avoid leaving lpRootPath initialized in GetDriveTypeW. Powered by /RTC1

svn path=/trunk/; revision=73905
This commit is contained in:
Thomas Faber 2017-02-25 13:06:25 +00:00
parent e53f1ac932
commit d48a928307

View file

@ -411,6 +411,7 @@ GetDriveTypeW(IN LPCWSTR lpRootPathName)
TRACE("lpRootPathName: %S\n", lpRootPathName);
lpRootPath = lpRootPathName;
if (Length == 2)
{
WCHAR DriveLetter = RtlUpcaseUnicodeChar(lpRootPathName[0]);
@ -428,10 +429,6 @@ GetDriveTypeW(IN LPCWSTR lpRootPathName)
lpRootPath = CurrentDir;
}
}
else
{
lpRootPath = lpRootPathName;
}
}
TRACE("lpRootPath: %S\n", lpRootPath);