mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Moves the path return from fileDialog through the returnBuffer so it doesn't get mangled or corrupted in memory inadvertently.
This commit is contained in:
parent
e0627973fb
commit
282333538a
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue