Merge pull request #2325 from Areloch/fileDialogReturnBuffer

Moves the path return from fileDialog through the returnBuffer
This commit is contained in:
Areloch 2019-03-30 16:31:44 -05:00 committed by GitHub
commit a0c24207ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,9 +285,9 @@ bool FileDialog::Execute()
{
// Single file selection, do it the easy way
if(mForceRelativePath)
mData.mFile = Platform::makeRelativePathName(resultPath.c_str(), NULL);
mData.mFile = Con::getReturnBuffer(Platform::makeRelativePathName(resultPath.c_str(), NULL));
else
mData.mFile = resultPath.c_str();
mData.mFile = Con::getReturnBuffer(resultPath.c_str());
}
else if (mData.mStyle & FileDialogData::FDS_MULTIPLEFILES)
{