O_BINARY added to wxFile::Create
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -223,7 +223,8 @@ bool wxFile::Create(const wxChar *szFileName, bool bOverwrite, int accessMode)
|
|||||||
int fd = open(wxUnix2MacFilename( szFileName ), O_CREAT | (bOverwrite ? O_TRUNC : O_EXCL), access);
|
int fd = open(wxUnix2MacFilename( szFileName ), O_CREAT | (bOverwrite ? O_TRUNC : O_EXCL), access);
|
||||||
#else
|
#else
|
||||||
int fd = open(wxFNCONV(szFileName),
|
int fd = open(wxFNCONV(szFileName),
|
||||||
O_WRONLY | O_CREAT | (bOverwrite ? O_TRUNC : O_EXCL)
|
O_BINARY | O_WRONLY | O_CREAT |
|
||||||
|
(bOverwrite ? O_TRUNC : O_EXCL)
|
||||||
ACCESS(accessMode));
|
ACCESS(accessMode));
|
||||||
#endif
|
#endif
|
||||||
if ( fd == -1 ) {
|
if ( fd == -1 ) {
|
||||||
|
Reference in New Issue
Block a user