]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
typo fix
[wxWidgets.git] / src / common / filefn.cpp
index de78ad948a3e52ecd6ae72037363d342b1562c46..3e6489ad198d1fd87680ba15451fed1f1475b023 100644 (file)
@@ -1074,13 +1074,13 @@ void wxUnixFilename2FSSpec( const char *path , FSSpec *spec )
 #endif // __WXMAC__
 
 void
-wxDos2UnixFilename (char *s)
+wxDos2UnixFilename (wxChar *s)
 {
   if (s)
     while (*s)
       {
-        if (*s == '\\')
-          *s = '/';
+        if (*s == _T('\\'))
+          *s = _T('/');
 #ifdef __WXMSW__
         else
           *s = wxTolower (*s);        // Case INDEPENDENT
@@ -1633,6 +1633,8 @@ wxString wxGetOSDirectory()
     wxChar buf[256];
     GetWindowsDirectory(buf, 256);
     return wxString(buf);
+#elif defined(__WXMAC__)
+    return wxMacFindFolder(kOnSystemDisk, 'macs', false);
 #else
     return wxEmptyString;
 #endif