X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..51a58d8b4bb58b66ec84dc94c56fe328d77c904a:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index cf02ef0e08..5e0d3c4aef 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -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; }