Skip to content

Commit

Permalink
fix invalid handle value for x64. closes gorakhargosh#123
Browse files Browse the repository at this point in the history
  • Loading branch information
tamland committed Feb 15, 2014
1 parent 52d9c25 commit e601943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/watchdog/observers/winapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
LPVOID = ctypes.c_void_p

# Invalid handle value.
INVALID_HANDLE_VALUE = 0xFFFFFFFF # -1
INVALID_HANDLE_VALUE = ctypes.c_void_p(-1).value

# File notification contants.
FILE_NOTIFY_CHANGE_FILE_NAME = 0x01
Expand Down
2 changes: 1 addition & 1 deletion src/watchdog/utils/win32ino.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import ctypes.wintypes


INVALID_HANDLE_VALUE = 0xFFFFFFFF
INVALID_HANDLE_VALUE = ctypes.c_void_p(-1).value
OPEN_EXISTING = 3
FILE_READ_ATTRIBUTES = 0x80
FILE_ATTRIBUTE_NORMAL = 0x80
Expand Down

0 comments on commit e601943

Please sign in to comment.