Skip to content

Commit 39c2c8a

Browse files
committed
Fix ctypes return type
(Assisted by Claude Code; any errors are mine.)
1 parent 897ffea commit 39c2c8a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/cjdk/_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def unlink_file(path, timeout=2.5):
9090
from ctypes import wintypes
9191

9292
kernel32 = ctypes.windll.kernel32
93+
kernel32.CreateFileW.restype = wintypes.HANDLE
9394

9495
DELETE = 0x00010000
9596
FILE_SHARE_READ = 0x01

0 commit comments

Comments
 (0)