Author: tfaber Date: Sat Feb 25 13:06:25 2017 New Revision: 73905 URL: http://svn.reactos.org/svn/reactos?rev=73905&view=rev Log: [KERNEL32] - Avoid leaving lpRootPath initialized in GetDriveTypeW. Powered by /RTC1
Modified: trunk/reactos/dll/win32/kernel32/client/file/disk.c Modified: trunk/reactos/dll/win32/kernel32/client/file/disk.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/file/disk.c?rev=73905&r1=73904&r2=73905&view=diff ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/file/disk.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/file/disk.c [iso-8859-1] Sat Feb 25 13:06:25 2017 @@ -411,6 +411,7 @@ TRACE("lpRootPathName: %S\n", lpRootPathName); + lpRootPath = lpRootPathName; if (Length == 2) { WCHAR DriveLetter = RtlUpcaseUnicodeChar(lpRootPathName[0]); @@ -427,10 +428,6 @@ lpRootPath = CurrentDir; } - } - else - { - lpRootPath = lpRootPathName; } }