浏览代码

Merge pull request #2325 from Areloch/fileDialogReturnBuffer

Moves the path return from fileDialog through the returnBuffer
Areloch 6 年之前
父节点
当前提交
b445b74bb2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Engine/source/platform/nativeDialogs/fileDialog.cpp

+ 2 - 2
Engine/source/platform/nativeDialogs/fileDialog.cpp

@@ -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)
    {