Prechádzať zdrojové kódy

Fixed the return value of the ConvertToAbsolutePath function (#5195)

Signed-off-by: lumberyard-employee-dm <[email protected]>
lumberyard-employee-dm 3 rokov pred
rodič
commit
a9f7ab4aaf

+ 1 - 1
Code/Framework/AzCore/AzCore/Utils/Utils.cpp

@@ -59,7 +59,7 @@ namespace AZ::Utils
         {
         {
             // Fix the size value of the fixed string by calculating the c-string length using char traits
             // Fix the size value of the fixed string by calculating the c-string length using char traits
             absolutePath.resize_no_construct(AZStd::char_traits<char>::length(absolutePath.data()));
             absolutePath.resize_no_construct(AZStd::char_traits<char>::length(absolutePath.data()));
-            return srcPath;
+            return absolutePath;
         }
         }
 
 
         return AZStd::nullopt;
         return AZStd::nullopt;