requires O_BINARY on Borland, and the others don't seem to mind it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43178
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
HANDLE h = ::CreateFile(filename, access, 0, NULL,
disposition, attributes, NULL);
HANDLE h = ::CreateFile(filename, access, 0, NULL,
disposition, attributes, NULL);
- return wxOpenOSFHandle(h, 0);
+ return wxOpenOSFHandle(h, wxO_BINARY);
}
#endif // wxOpenOSFHandle
}
#endif // wxOpenOSFHandle
return file->Open(path, _T("w+b"));
#else // wx_fdopen
int fd = wxTempOpen(path, deleteOnClose);
return file->Open(path, _T("w+b"));
#else // wx_fdopen
int fd = wxTempOpen(path, deleteOnClose);
return false;
file->Attach(wx_fdopen(fd, "w+b"));
return file->IsOpened();
return false;
file->Attach(wx_fdopen(fd, "w+b"));
return file->IsOpened();