Fix for module file path (#1598)

This commit is contained in:
sharmajs-amzn
2021-06-28 09:45:05 -07:00
committed by GitHub
parent 7a2a2dc0d7
commit deadf448c9
@@ -85,7 +85,7 @@ namespace AZ
else
{
// The module does exist (in 'cwd'), but still needs to be an absolute path for the module to be loaded.
AZStd::optional<AZ::IO::FixedMaxPathString> absPathOptional = AZ::Utils::ConvertToAbsolutePath(m_fileName);
AZStd::optional<AZ::IO::FixedMaxPathString> absPathOptional = AZ::Utils::ConvertToAbsolutePath(fullFilePath.c_str());
if (absPathOptional.has_value())
{
m_fileName.assign(absPathOptional->c_str(), absPathOptional->size());