mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Fix libxml_PyFileGet
Broken in commit 75cdb6dd.
This commit is contained in:
parent
f9fcb2c47a
commit
71736b4e9a
@ -81,14 +81,10 @@ libxml_PyFileGet(PyObject *f) {
|
||||
int flags;
|
||||
FILE *res;
|
||||
const char *mode;
|
||||
int fd = PyObject_AsFileDescriptor(f);
|
||||
|
||||
#ifdef _WIN32
|
||||
intptr_t w_fh = -1;
|
||||
#else
|
||||
int fd = PyObject_AsFileDescriptor(f);
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
HMODULE hntdll = NULL;
|
||||
IO_STATUS_BLOCK status_block;
|
||||
FILE_ACCESS_INFORMATION ai;
|
||||
|
Loading…
x
Reference in New Issue
Block a user