mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 09:59:44 +00:00
[KERNEL32]
- Avoid leaving lpRootPath initialized in GetDriveTypeW. Powered by /RTC1 svn path=/trunk/; revision=73905
This commit is contained in:
parent
e53f1ac932
commit
d48a928307
|
@ -411,6 +411,7 @@ GetDriveTypeW(IN LPCWSTR lpRootPathName)
|
||||||
|
|
||||||
TRACE("lpRootPathName: %S\n", lpRootPathName);
|
TRACE("lpRootPathName: %S\n", lpRootPathName);
|
||||||
|
|
||||||
|
lpRootPath = lpRootPathName;
|
||||||
if (Length == 2)
|
if (Length == 2)
|
||||||
{
|
{
|
||||||
WCHAR DriveLetter = RtlUpcaseUnicodeChar(lpRootPathName[0]);
|
WCHAR DriveLetter = RtlUpcaseUnicodeChar(lpRootPathName[0]);
|
||||||
|
@ -428,10 +429,6 @@ GetDriveTypeW(IN LPCWSTR lpRootPathName)
|
||||||
lpRootPath = CurrentDir;
|
lpRootPath = CurrentDir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
lpRootPath = lpRootPathName;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE("lpRootPath: %S\n", lpRootPath);
|
TRACE("lpRootPath: %S\n", lpRootPath);
|
||||||
|
|
Loading…
Reference in a new issue