From 7a5df8619cdd8c262c3169e27dbbcb85bd93fbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 8 Jan 2002 23:36:51 +0000 Subject: [PATCH] MS-DOS fix to wxDir git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mgl/dirmgl.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mgl/dirmgl.cpp b/src/mgl/dirmgl.cpp index b6ce6e5ca0..0482918fb9 100644 --- a/src/mgl/dirmgl.cpp +++ b/src/mgl/dirmgl.cpp @@ -61,7 +61,7 @@ public: bool IsOk() const { return m_dir != NULL; } - void SetFileSpec(const wxString& filespec) { m_filespec = filespec; } + void SetFileSpec(const wxString& filespec); void SetFlags(int flags) { m_flags = flags; } void Rewind(); @@ -106,6 +106,16 @@ wxDirData::~wxDirData() PM_findClose(m_dir); } +void wxDirData::SetFileSpec(const wxString& filespec) +{ +#ifdef __DOS__ + if ( filespec.IsEmpty() ) + m_filespec = _T("*.*"); + else +#endif + m_filespec = filespec; +} + void wxDirData::Rewind() { if ( m_dir )