mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 23:25:06 +00:00
[utils] Use local kernel32 for file locking on Windows
Ref: https://github.com/ytdl-org/youtube-dl/issues/21545 Authored by: Grub4K
This commit is contained in:
parent
59d7de0da5
commit
37e325b92f
1 changed files with 1 additions and 1 deletions
|
@ -2106,7 +2106,7 @@ class OVERLAPPED(ctypes.Structure):
|
||||||
('hEvent', ctypes.wintypes.HANDLE),
|
('hEvent', ctypes.wintypes.HANDLE),
|
||||||
]
|
]
|
||||||
|
|
||||||
kernel32 = ctypes.windll.kernel32
|
kernel32 = ctypes.WinDLL('kernel32')
|
||||||
LockFileEx = kernel32.LockFileEx
|
LockFileEx = kernel32.LockFileEx
|
||||||
LockFileEx.argtypes = [
|
LockFileEx.argtypes = [
|
||||||
ctypes.wintypes.HANDLE, # hFile
|
ctypes.wintypes.HANDLE, # hFile
|
||||||
|
|
Loading…
Reference in a new issue