lib/windows/file.rb in windows-pr-1.0.7 vs lib/windows/file.rb in windows-pr-1.0.8

- old
+ new

@@ -99,12 +99,10 @@ FILE_NOTIFY_CHANGE_SIZE = 8 FILE_NOTIFY_CHANGE_LAST_WRITE = 16 FILE_NOTIFY_CHANGE_LAST_ACCESS = 32 FILE_NOTIFY_CHANGE_CREATION = 64 FILE_NOTIFY_CHANGE_SECURITY = 256 - MAILSLOT_NO_MESSAGE = -1 - MAILSLOT_WAIT_FOREVER = -1 FILE_CASE_SENSITIVE_SEARCH = 1 FILE_CASE_PRESERVED_NAMES = 2 FILE_UNICODE_ON_DISK = 4 FILE_PERSISTENT_ACLS = 8 FILE_FILE_COMPRESSION = 16 @@ -152,13 +150,16 @@ SECTION_MAP_EXECUTE | SECTION_EXTEND_SIZE # Errors - INVALID_FILE_ATTRIBUTES = -1 - INVALID_HANDLE_VALUE = -1 - INVALID_SET_FILE_POINTER = -1 + INVALID_FILE_ATTRIBUTES = 0xFFFFFFFF + INVALID_SET_FILE_POINTER = 0xFFFFFFFF INVALID_FILE_SIZE = 0xFFFFFFFF + + # Defined in Windows::Handle as well. Here for convenience. + + INVALID_HANDLE_VALUE = 0xFFFFFFFF unless defined? INVALID_HANDLE_VALUE # Misc LOCKFILE_EXCLUSIVE_LOCK = 0x00000001 LOCKFILE_FAIL_IMMEDIATELY = 0x00000002