From: <sag...@us...> - 2012-09-18 19:52:36
|
Revision: 1351 http://modplug.svn.sourceforge.net/modplug/?rev=1351&view=rev Author: saga-games Date: 2012-09-18 19:52:29 +0000 (Tue, 18 Sep 2012) Log Message: ----------- [Fix] A known file extension shouldn't create wrong file extension in the wav/mp3 export dialog anymore (http://bugs.openmpt.org/view.php?id=298) Modified Paths: -------------- trunk/OpenMPT/mptrack/Moddoc.cpp Modified: trunk/OpenMPT/mptrack/Moddoc.cpp =================================================================== --- trunk/OpenMPT/mptrack/Moddoc.cpp 2012-09-11 15:08:58 UTC (rev 1350) +++ trunk/OpenMPT/mptrack/Moddoc.cpp 2012-09-18 19:52:29 UTC (rev 1351) @@ -1530,6 +1530,7 @@ if ((!pMainFrm) || (!m_SndFile.GetType())) return; _splitpath(GetPathName(), NULL, NULL, fname, NULL); + strcat_s(fname, CountOf(fname), ".wav"); CWaveConvert wsdlg(pMainFrm, nMinOrder, nMaxOrder); if (wsdlg.DoModal() != IDOK) return; @@ -1724,6 +1725,7 @@ if ((!pMainFrm) || (!m_SndFile.GetType())) return; _splitpath(GetPathName(), NULL, NULL, sFName, NULL); + strcat_s(sFName, CountOf(sFName), ".mp3"); FileDlgResult files = CTrackApp::ShowOpenSaveFileDialog(false, "mp3", sFName, "MPEG Layer III Files (*.mp3)|*.mp3|Layer3 Wave Files (*.wav)|*.wav||", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |