Skip to content

Commit 9179fac

Browse files
committed
fix Windows tests
1 parent 1c543d9 commit 9179fac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,10 +796,10 @@ CDataType_in_dll(PyObject *type, PyObject *args)
796796
(void)dlerror();
797797
#endif
798798
address = (void *)dlsym(handle, name);
799+
#endif
799800
if (address) {
800801
return PyCData_AtAddress(type, address);
801802
}
802-
#endif
803803
#ifdef USE_DLERROR
804804
const char *dlerr = dlerror();
805805
if (dlerr) {
@@ -3625,7 +3625,6 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds)
36253625
(void)dlerror();
36263626
#endif
36273627
address = (PPROC)dlsym(handle, name);
3628-
36293628
if (!address) {
36303629
#ifdef USE_DLERROR
36313630
const char *dlerr = dlerror();

0 commit comments

Comments
 (0)