1. log::save works with wxGTK

2. wxFile::Create() doesn't create files open for reading any more...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-12-15 18:59:30 +00:00
parent 3fd16e6c58
commit 5fc5e442f3
2 changed files with 5 additions and 7 deletions

View File

@@ -174,7 +174,8 @@ bool wxFile::Create(const char *szFileName, bool bOverwrite, int access)
{
// if bOverwrite we create a new file or truncate the existing one,
// otherwise we only create the new file and fail if it already exists
int fd = open(szFileName, O_CREAT | (bOverwrite ? O_TRUNC : O_EXCL), access);
int fd = open(szFileName, O_WRONLY | O_CREAT |
(bOverwrite ? O_TRUNC : O_EXCL), access);
if ( fd == -1 ) {
wxLogSysError(_("can't create file '%s'"), szFileName);