Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
  • Loading branch information
AenBleidd committed Jan 15, 2025
1 parent cf71223 commit 822e902
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions installer/FileTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ std::filesystem::path FileTable::GetAbsolutePath(
std::string FileTable::GetFileName(const std::filesystem::path& filePath) {
char shortName[MAX_PATH];
auto fileName = filePath.filename().string();
std::cout << "Get short file name for " << fileName << std::endl;
if (GetShortPathName(filePath.string().c_str(), shortName, MAX_PATH)
!= 0) {
std::cout << "Short file name for " << fileName << " is " << shortName
<< std::endl;
const auto converted =
std::filesystem::path(shortName).filename().string();
if (converted != fileName) {
Expand Down

0 comments on commit 822e902

Please sign in to comment.