Index: src/libchcore/TLocalFilesystem.cpp =================================================================== diff -u -N -ra5aa3c3cb78f3767641de2627d1a49a1dc35b429 -r2fe97a93f21771d75901d4b6559057d1ea055104 --- src/libchcore/TLocalFilesystem.cpp (.../TLocalFilesystem.cpp) (revision a5aa3c3cb78f3767641de2627d1a49a1dc35b429) +++ src/libchcore/TLocalFilesystem.cpp (.../TLocalFilesystem.cpp) (revision 2fe97a93f21771d75901d4b6559057d1ea055104) @@ -46,9 +46,7 @@ UINT uiDrvType = DRIVE_UNKNOWN; if(!spPath.IsNetworkPath()) { - std::wstring wstrDrive = spPath.ToWString(); - - if(!wstrDrive.empty()) + if(!spPath.IsEmpty()) { TSmartPath pathDrive = spPath.GetDrive(); pathDrive.AppendSeparatorIfDoesNotExist();