win32file.UnlockFileEx incorrect expects ints as arguments
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
Similar to https://sourceforge.net/p/pywin32/bugs/561/, UnlockFileEx incorrectly is expecting ints as its arguments, rather than unsigned longs:
len = 4294967295L
win32file.LockFileEx(handle, 0, len, len, overlapvar)
win32file.UnlockFileEx(handle, len, len, overlapvar)
Traceback (most recent call last):
File "<interactive input="">", line 1, in <module>
OverflowError: Python int too large to convert to C long
Untested fix:
in win32/src/win32file.i:MyUnlockFileEx():
Thanks, fixed in rev 5bab1c62bff6