Skip to content

Add Std Handle Values to WinSDK #24148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2019
Merged

Conversation

gmittert
Copy link
Contributor

@gmittert gmittert commented Apr 18, 2019

Added the values of STD_*_HANDLE to WinSDK for use with GetStdHandle since otherwise swift complains about storing a negative number in a UInt32. See: https://docs.microsoft.com/en-us/windows/console/getstdhandle

@gmittert gmittert requested a review from compnerd April 18, 2019 23:39
@gmittert
Copy link
Contributor Author

Let's see if I have CI privileges yet:

@swift-ci please test

// ProcessEnv.h
public let STD_INPUT_HANDLE: DWORD = DWORD(bitPattern: -10)
public let STD_OUTPUT_HANDLE: DWORD = DWORD(bitPattern: -11)
public let STD_ERROR_HANDLE: DWORD = DWORD(bitPattern: -12)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are from WinBase.h. Please move them along with the other WinBase.h constants.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, updated to indicate they're from WinBase.h

Added the values of STD_*_HANDLE to WinSDK for use with GetStdHandle
@compnerd
Copy link
Member

@swift-ci please smoke test and merge

1 similar comment
@compnerd
Copy link
Member

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit bd1ce98 into swiftlang:master Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants