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);