]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
Added wxGenericDirCtrl, wxGenericDirDialog and associated icons.
[wxWidgets.git] / src / common / docview.cpp
index cf02ef0e08584ea95a5f6df75b0952e57408bf0c..5e0d3c4aef4a0083a56761bd8e96104e65437ba9 100644 (file)
@@ -2253,7 +2253,7 @@ bool wxTransferFileToStream(const wxString& filename, wxOutputStream& stream)
     FILE *fd1;
     int ch;
 
-    if ((fd1 = wxFopen (filename.fn_str(), wxT("rb"))) == NULL)
+    if ((fd1 = wxFopen (filename, wxT("rb"))) == NULL)
         return FALSE;
 
     while ((ch = getc (fd1)) != EOF)
@@ -2268,7 +2268,7 @@ bool wxTransferStreamToFile(wxInputStream& stream, const wxString& filename)
     FILE *fd1;
     char ch;
 
-    if ((fd1 = wxFopen (filename.fn_str(), wxT("wb"))) == NULL)
+    if ((fd1 = wxFopen (filename, wxT("wb"))) == NULL)
     {
         return FALSE;
     }