From 6f5d92754318ce347cadfbf14a6ef0c6d6d43ef8 Mon Sep 17 00:00:00 2001 From: Fournet Enzo Date: Sun, 1 Dec 2024 18:20:46 +0100 Subject: [PATCH] ToLower only on letter --- src/Security/BeamNG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Security/BeamNG.cpp b/src/Security/BeamNG.cpp index 2ccf698..c8d0476 100644 --- a/src/Security/BeamNG.cpp +++ b/src/Security/BeamNG.cpp @@ -189,8 +189,8 @@ std::map GetDriveMappings(const std::string& bottlePath) { if (std::filesystem::exists(dosDevicesPath)) { for (const auto& entry : std::filesystem::directory_iterator(dosDevicesPath)) { if (entry.is_symlink()) { - std::string driveName = Utils::ToLower(entry.path().filename().string()); - char driveLetter = driveName[0]; + char driveLetter = entry.path().filename().string()[0]; + driveLetter = Utils::ToLower(driveLetter); std::string macPath = std::filesystem::read_symlink(entry.path()).string(); if (!std::filesystem::path(macPath).is_absolute()) { macPath = dosDevicesPath + macPath;