From d48a92830798ed196e15d517bf0b4705a3f1b7df Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 25 Feb 2017 13:06:25 +0000 Subject: [PATCH] [KERNEL32] - Avoid leaving lpRootPath initialized in GetDriveTypeW. Powered by /RTC1 svn path=/trunk/; revision=73905 --- reactos/dll/win32/kernel32/client/file/disk.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reactos/dll/win32/kernel32/client/file/disk.c b/reactos/dll/win32/kernel32/client/file/disk.c index 4f29f47975d..2c5e4f77f37 100644 --- a/reactos/dll/win32/kernel32/client/file/disk.c +++ b/reactos/dll/win32/kernel32/client/file/disk.c @@ -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);