]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
better guarding when no printing architecture exists (patch from Joel Low)
[wxWidgets.git] / src / common / filefn.cpp
index 4308af2059d3afe10dd7a6ed9696e64477a9047f..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.wx_str(),
+                    path.t_str(),
                     access,
                     FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
                     NULL,