--- tidy/lib.py	2012-02-28 04:56:35.000000000 +0200
+++ tidy/lib.py.new	2012-02-28 04:57:09.000000000 +0200
@@ -130,6 +130,8 @@
 
 sinkfactory=SinkFactory()
 
+_tidy.Create.restype = ctypes.POINTER(ctypes.c_void_p)
+
 class _Document(object):
     def __init__(self):
         self.cdoc = _tidy.Create()
