Fix for bug while deleting file. This is due to a problem in the file path. (#5948)

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>

Co-authored-by: Tobias Alexander Franke <tobias.alexander.franke@huawei.com>
This commit is contained in:
tjmgd
2021-12-01 21:05:57 +00:00
committed by GitHub
parent e16781e6b6
commit 26e8fd59eb
@@ -102,7 +102,8 @@ namespace AudioControls
for (auto it = librariesToDelete.begin(); it != librariesToDelete.end(); ++it)
{
DeleteLibraryFile((*it).c_str());
auto newPathOpt = fileIO->ResolvePath(AZ::IO::PathView{ *it });
DeleteLibraryFile(newPathOpt.value().Native());
}
previousLibraryPaths = m_foundLibraryPaths;