Skip to content
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

Fix ResizePseudoConsole accepting negative values #3936

Merged
merged 1 commit into from Dec 13, 2019

Conversation

mkitzan
Copy link
Contributor

@mkitzan mkitzan commented Dec 12, 2019

Summary of the Pull Request

Change function to verify that COORD X,Y values are positive.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Visual verification, it's a basic if statement.

@mkitzan mkitzan marked this pull request as ready for review December 12, 2019 19:27
carlos-zamora
carlos-zamora previously approved these changes Dec 12, 2019
@carlos-zamora carlos-zamora dismissed their stale review December 12, 2019 22:22

Actually, wait. Just add a test and I'll approve haha.

@mkitzan
Copy link
Contributor Author

mkitzan commented Dec 13, 2019

This one's going to be a little stranger to test, because of how low level this function is. It wants a PseudoConsole pointer which, from my investigation, is inaccessible from outside winconpty.LIB (since it's the only location of the header). Would it be a problem to add winconpty.h to the Header Files folder in Host.Tests.Unit?

@DHowett-MSFT
Copy link
Contributor

Let's temporarily hold off testing this one, actually. We've got #3851 tracking bringing the ConPTY tests out into the open-source project (from the Windows component where they're living) 😄

@DHowett-MSFT DHowett-MSFT changed the title Fixes ResizePseudoConsole accepting negative values Fix ResizePseudoConsole accepting negative values Dec 13, 2019
@DHowett-MSFT DHowett-MSFT merged commit 29619d3 into microsoft:master Dec 13, 2019
@mkitzan mkitzan deleted the resize-pseudo-console branch December 13, 2019 01:57
@ghost
Copy link

ghost commented Jan 14, 2020

🎉Windows Terminal Preview v0.8.10091.0 has been released which incorporates this pull request.:tada:

Handy links:

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.

Sending negative values to ResizePseudoConsole returns S_OK
4 participants