mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-18 16:08:59 +03:00
Use memcpy to avoid pointer cast warnings
This commit is contained in:
@@ -112,9 +112,8 @@ libxml_PyFileGet(PyObject *f) {
|
||||
|
||||
if (hntdll == NULL)
|
||||
return(NULL);
|
||||
XML_IGNORE_FPTR_CAST_WARNINGS
|
||||
NtQueryInformationFile = (t_NtQueryInformationFile)GetProcAddress(hntdll, "NtQueryInformationFile");
|
||||
XML_POP_WARNINGS
|
||||
NtQueryInformationFile = (t_NtQueryInformationFile) (void (*)(void))
|
||||
GetProcAddress(hntdll, "NtQueryInformationFile");
|
||||
|
||||
if (NtQueryInformationFile != NULL &&
|
||||
(NtQueryInformationFile((HANDLE)w_fh,
|
||||
|
Reference in New Issue
Block a user