Commits

Armin Rigo committed 37a7857

Add the .DLL after KERNEL32.

Comments (0)

Files changed (2)

     if sys.platform != "win32":
         py.test.skip("GetLastError(): only for Windows")
     #
-    lib = find_and_load_library('KERNEL32')
+    lib = find_and_load_library('KERNEL32.DLL')
     BInt = new_primitive_type("int")
     BVoid = new_void_type()
     BFunc1 = new_function_type((BInt,), BVoid, False)

testing/test_function.py

             py.test.skip("ctypes complains on wrong calling conv")
         ffi = FFI(backend=self.Backend())
         ffi.cdef("long TlsAlloc(void); int TlsFree(long);")
-        lib = ffi.dlopen('KERNEL32')
+        lib = ffi.dlopen('KERNEL32.DLL')
         x = lib.TlsAlloc()
         assert x != 0
         y = lib.TlsFree(x)