-
-#if wxUSE_UNICODE_MSLU && defined(OFN_EXPLORER)
- // VS: these's a bug in unicows.dll - when multiple files are
- // selected, of.nFileOffset doesn't point to the first
- // filename but rather to the last component of directory
- // name. Let's try to fix it:
- if ( (m_dialogStyle & wxMULTIPLE) &&
- (fileNameBuffer[of.nFileOffset-1] != wxT('\0')) &&
- wxGetOsVersion() == wxWIN95 /*using unicows.dll*/)
- {
- if ( wxDirExists(fileNameBuffer) )
- {
- // 1st component is dir => multiple files selected
- of.nFileOffset = wxStrlen(fileNameBuffer)+1;
- }
- }
-#endif // wxUSE_UNICODE_MSLU
-