The wxFopen() fix again, but in the main branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2253,7 +2253,7 @@ bool wxTransferFileToStream(const wxString& filename, wxOutputStream& stream)
|
|||||||
FILE *fd1;
|
FILE *fd1;
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
if ((fd1 = wxFopen (filename.fn_str(), wxT("rb"))) == NULL)
|
if ((fd1 = wxFopen (filename, wxT("rb"))) == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
while ((ch = getc (fd1)) != EOF)
|
while ((ch = getc (fd1)) != EOF)
|
||||||
@@ -2268,7 +2268,7 @@ bool wxTransferStreamToFile(wxInputStream& stream, const wxString& filename)
|
|||||||
FILE *fd1;
|
FILE *fd1;
|
||||||
char ch;
|
char ch;
|
||||||
|
|
||||||
if ((fd1 = wxFopen (filename.fn_str(), wxT("wb"))) == NULL)
|
if ((fd1 = wxFopen (filename, wxT("wb"))) == NULL)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user