Mark Hammond <mhammond@skippinet.com.au>:

This patch fixes the mmap module on Windows 9x.
This commit is contained in:
Fred Drake 2000-04-05 14:15:31 +00:00
parent aaa8bb4211
commit 1ef4e2d54e
1 changed files with 2 additions and 6 deletions

View File

@ -752,12 +752,8 @@ new_mmap_object (PyObject * self, PyObject * args)
PyErr_SetFromErrno(mmap_module_error);
return NULL;
}
//
// fh = OpenFile (filename, &file_info, OF_READWRITE);
// if (fh == HFILE_ERROR) {
// PyErr_SetFromWindowsErr(GetLastError());
// return NULL;
// }
/* Win9x appears to need us seeked to zero */
fseek(&_iob[fileno], 0, SEEK_SET);
}
m_obj = PyObject_NEW (mmap_object, &mmap_object_type);