// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
-// Copyright: (c) Julian Smart and Markus Holzem
+// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/msw/private.h"
-#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
+#if !defined(__WIN32__) || defined(__SALFORDC__)
#include <commdlg.h>
#endif
#include <stdlib.h>
#include <string.h>
+#include "wx/filename.h"
#include "wx/tokenzr.h"
#ifndef OFN_EXPLORER
size_t count = m_fileNames.GetCount();
for ( size_t n = 0; n < count; n++ )
{
- paths.Add(dir + m_fileNames[n]);
+ if (wxFileName(m_fileNames[n]).IsAbsolute())
+ paths.Add(m_fileNames[n]);
+ else
+ paths.Add(dir + m_fileNames[n]);
}
}