]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
OSX regrouping
[wxWidgets.git] / src / common / filefn.cpp
index f5389f29916cf67a2b8d8e1c8e434a9aa1002b6c..0597305a5e6d410c80a0f275efac7caebdb5eb3a 100644 (file)
@@ -1657,7 +1657,7 @@ wxString wxGetOSDirectory()
     wxChar buf[256];
     GetWindowsDirectory(buf, 256);
     return wxString(buf);
-#elif defined(__WXMAC__) && !defined(__WXOSX_IPHONE__)
+#elif defined(__WXMAC__) && wxOSX_USE_CARBON
     return wxMacFindFolder(kOnSystemDisk, 'macs', false);
 #else
     return wxEmptyString;
@@ -1851,7 +1851,7 @@ static bool wxCheckWin32Permission(const wxString& path, DWORD access)
 
     HANDLE h = ::CreateFile
                  (
-                    path.c_str(),
+                    path.t_str(),
                     access,
                     FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
                     NULL,