]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/dir.cpp
blind OS/2 compilation fix in wxSetWorkingDirectory()
[wxWidgets.git] / src / unix / dir.cpp
index d87bf47002382bace41d6ba24304d40aa865bdf7..7743d9b064d822e9e2a4c3878b709712b249cde1 100644 (file)
@@ -132,7 +132,7 @@ bool wxDirData::Read(wxString *filename)
             return false;
 
 #if wxUSE_UNICODE
             return false;
 
 #if wxUSE_UNICODE
-        de_d_name = wxConvFileName->cMB2WC( de->d_name );
+        de_d_name = wxString(de->d_name, *wxConvFileName);
 #else
         de_d_name = de->d_name;
 #endif
 #else
         de_d_name = de->d_name;
 #endif