Allow INVALID_HANDLE_VALUE for windows to work on 32-bit and 64-bit. (#457)

This commit is contained in:
Jonathan Marler 2017-09-10 09:16:27 -06:00 committed by Andrew Kelley
parent 0f7544cfca
commit 3f8b26c06a

View File

@ -72,7 +72,7 @@ pub const STD_OUTPUT_HANDLE = @maxValue(DWORD) - 11 + 1;
/// The standard error device. Initially, this is the active console screen buffer, CONOUT$.
pub const STD_ERROR_HANDLE = @maxValue(DWORD) - 12 + 1;
pub const INVALID_HANDLE_VALUE = @intToPtr(HANDLE, 0xFFFFFFFFFFFFFFFF);
pub const INVALID_HANDLE_VALUE = @intToPtr(HANDLE, @maxValue(usize));
pub const OVERLAPPED = extern struct {
Internal: ULONG_PTR,