[issue36736] Python crashes when calling win32file.LockFileEx

2019-04-27 Thread Eryk Sun
Eryk Sun added the comment: > win32file.LockFileEx(h, win32con.LOCKFILE_EXCLUSIVE_LOCK, 5, 5, None) This is a third-party issue in the PyWin32 package. win32file.LockFileEx shouldn't allow passing None for the required 5th parameter `ol` (i.e. the lpOverlapped parameter of WINAPI LockFileEx

[issue36736] Python crashes when calling win32file.LockFileEx

2019-04-27 Thread Anand Arumugam
New submission from Anand Arumugam : Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32file >>> import win32con >>> import platform >>> h = win32file.CreateFile(f'd: