expand wildcards on windows (patch #773160)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5f0b6dff53
commit
f65a69e9a0
@ -144,7 +144,18 @@ void XmlResApp::ParseParams(const wxCmdLineParser& cmdline)
|
||||
parFuncname = _T("InitXmlResource");
|
||||
|
||||
for (size_t i = 0; i < cmdline.GetParamCount(); i++)
|
||||
{
|
||||
#ifdef __WINDOWS__
|
||||
wxString fn=wxFindFirstFile(cmdline.GetParam(i), wxFILE);
|
||||
while (!fn.IsEmpty())
|
||||
{
|
||||
parFiles.Add(fn);
|
||||
fn=wxFindNextFile();
|
||||
}
|
||||
#else
|
||||
parFiles.Add(cmdline.GetParam(i));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -144,7 +144,18 @@ void XmlResApp::ParseParams(const wxCmdLineParser& cmdline)
|
||||
parFuncname = _T("InitXmlResource");
|
||||
|
||||
for (size_t i = 0; i < cmdline.GetParamCount(); i++)
|
||||
{
|
||||
#ifdef __WINDOWS__
|
||||
wxString fn=wxFindFirstFile(cmdline.GetParam(i), wxFILE);
|
||||
while (!fn.IsEmpty())
|
||||
{
|
||||
parFiles.Add(fn);
|
||||
fn=wxFindNextFile();
|
||||
}
|
||||
#else
|
||||
parFiles.Add(cmdline.GetParam(i));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user